| 1 | /* |
| 2 | * Copyright (C) 2015 Igalia S.L. |
| 3 | * Copyright (c) 2012, Samsung Electronics |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions are met: |
| 7 | * |
| 8 | * * Redistributions of source code must retain the above copyright notice, this |
| 9 | * list of conditions and the following disclaimer. |
| 10 | * * Redistributions in binary form must reproduce the above copyright notice, |
| 11 | * this list of conditions and the following disclaimer in the documentation |
| 12 | * and/or other materials provided with the distribution. |
| 13 | * |
| 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 22 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 23 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 24 | * POSSIBILITY OF SUCH DAMAGE. |
| 25 | */ |
| 26 | |
| 27 | #if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) |
| 28 | #error "Only <webkit2/webkit2.h> can be included directly." |
| 29 | #endif |
| 30 | |
| 31 | #ifndef WebKitColorChooserRequest_h |
| 32 | #define WebKitColorChooserRequest_h |
| 33 | |
| 34 | #include <gtk/gtk.h> |
| 35 | #include <webkit2/WebKitDefines.h> |
| 36 | |
| 37 | G_BEGIN_DECLS |
| 38 | |
| 39 | #define WEBKIT_TYPE_COLOR_CHOOSER_REQUEST (webkit_color_chooser_request_get_type()) |
| 40 | #define WEBKIT_COLOR_CHOOSER_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_COLOR_CHOOSER_REQUEST, WebKitColorChooserRequest)) |
| 41 | #define WEBKIT_IS_COLOR_CHOOSER_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_COLOR_CHOOSER_REQUEST)) |
| 42 | #define WEBKIT_COLOR_CHOOSER_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_COLOR_CHOOSER_REQUEST, WebKitColorChooserRequestClass)) |
| 43 | #define WEBKIT_IS_COLOR_CHOOSER_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_COLOR_CHOOSER_REQUEST)) |
| 44 | #define WEBKIT_COLOR_CHOOSER_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_COLOR_CHOOSER_REQUEST, WebKitColorChooserRequestClass)) |
| 45 | |
| 46 | typedef struct _WebKitColorChooserRequest WebKitColorChooserRequest; |
| 47 | typedef struct _WebKitColorChooserRequestClass WebKitColorChooserRequestClass; |
| 48 | typedef struct _WebKitColorChooserRequestPrivate WebKitColorChooserRequestPrivate; |
| 49 | |
| 50 | struct _WebKitColorChooserRequest { |
| 51 | GObject parent; |
| 52 | |
| 53 | /*< private >*/ |
| 54 | WebKitColorChooserRequestPrivate *priv; |
| 55 | }; |
| 56 | |
| 57 | struct _WebKitColorChooserRequestClass { |
| 58 | GObjectClass parent_class; |
| 59 | }; |
| 60 | |
| 61 | WEBKIT_API GType |
| 62 | webkit_color_chooser_request_get_type (void); |
| 63 | |
| 64 | WEBKIT_API void |
| 65 | webkit_color_chooser_request_get_rgba (WebKitColorChooserRequest *request, |
| 66 | GdkRGBA *rgba); |
| 67 | |
| 68 | WEBKIT_API void |
| 69 | webkit_color_chooser_request_set_rgba (WebKitColorChooserRequest *request, |
| 70 | const GdkRGBA *rgba); |
| 71 | |
| 72 | WEBKIT_API void |
| 73 | webkit_color_chooser_request_get_element_rectangle (WebKitColorChooserRequest *request, |
| 74 | GdkRectangle *rect); |
| 75 | |
| 76 | WEBKIT_API void |
| 77 | webkit_color_chooser_request_finish (WebKitColorChooserRequest *request); |
| 78 | |
| 79 | WEBKIT_API void |
| 80 | webkit_color_chooser_request_cancel (WebKitColorChooserRequest *request); |
| 81 | |
| 82 | G_END_DECLS |
| 83 | |
| 84 | #endif |
| 85 | |