| 1 | |
| 2 | /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ |
| 3 | |
| 4 | /* |
| 5 | * Copyright (C) 2017 Igalia S.L. |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Library General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Library General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Library General Public License |
| 18 | * along with this library; see the file COPYING.LIB. If not, write to |
| 19 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 | * Boston, MA 02110-1301, USA. |
| 21 | */ |
| 22 | |
| 23 | #include <config.h> |
| 24 | #include "WebKitWebProcessEnumTypes.h" |
| 25 | |
| 26 | #include <webkit2/webkit-web-extension.h> |
| 27 | extern "C" { |
| 28 | // Enumerations from /home/ubuntu/webkit/Source/WebKit/WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h. |
| 29 | GType webkit_console_message_source_get_type() |
| 30 | { |
| 31 | static const GEnumValue values[] = { |
| 32 | { WEBKIT_CONSOLE_MESSAGE_SOURCE_JAVASCRIPT, "WEBKIT_CONSOLE_MESSAGE_SOURCE_JAVASCRIPT" , "javascript" }, |
| 33 | { WEBKIT_CONSOLE_MESSAGE_SOURCE_NETWORK, "WEBKIT_CONSOLE_MESSAGE_SOURCE_NETWORK" , "network" }, |
| 34 | { WEBKIT_CONSOLE_MESSAGE_SOURCE_CONSOLE_API, "WEBKIT_CONSOLE_MESSAGE_SOURCE_CONSOLE_API" , "console-api" }, |
| 35 | { WEBKIT_CONSOLE_MESSAGE_SOURCE_SECURITY, "WEBKIT_CONSOLE_MESSAGE_SOURCE_SECURITY" , "security" }, |
| 36 | { WEBKIT_CONSOLE_MESSAGE_SOURCE_OTHER, "WEBKIT_CONSOLE_MESSAGE_SOURCE_OTHER" , "other" }, |
| 37 | { 0, NULL, NULL } |
| 38 | }; |
| 39 | |
| 40 | static GType type = 0; |
| 41 | if (G_UNLIKELY(!type)) |
| 42 | type = g_enum_register_static("WebKitConsoleMessageSource" , values); |
| 43 | |
| 44 | return type; |
| 45 | } |
| 46 | GType webkit_console_message_level_get_type() |
| 47 | { |
| 48 | static const GEnumValue values[] = { |
| 49 | { WEBKIT_CONSOLE_MESSAGE_LEVEL_INFO, "WEBKIT_CONSOLE_MESSAGE_LEVEL_INFO" , "info" }, |
| 50 | { WEBKIT_CONSOLE_MESSAGE_LEVEL_LOG, "WEBKIT_CONSOLE_MESSAGE_LEVEL_LOG" , "log" }, |
| 51 | { WEBKIT_CONSOLE_MESSAGE_LEVEL_WARNING, "WEBKIT_CONSOLE_MESSAGE_LEVEL_WARNING" , "warning" }, |
| 52 | { WEBKIT_CONSOLE_MESSAGE_LEVEL_ERROR, "WEBKIT_CONSOLE_MESSAGE_LEVEL_ERROR" , "error" }, |
| 53 | { WEBKIT_CONSOLE_MESSAGE_LEVEL_DEBUG, "WEBKIT_CONSOLE_MESSAGE_LEVEL_DEBUG" , "debug" }, |
| 54 | { 0, NULL, NULL } |
| 55 | }; |
| 56 | |
| 57 | static GType type = 0; |
| 58 | if (G_UNLIKELY(!type)) |
| 59 | type = g_enum_register_static("WebKitConsoleMessageLevel" , values); |
| 60 | |
| 61 | return type; |
| 62 | } |
| 63 | // Enumerations from /home/ubuntu/webkit/Source/WebKit/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h. |
| 64 | GType webkit_form_submission_step_get_type() |
| 65 | { |
| 66 | static const GEnumValue values[] = { |
| 67 | { WEBKIT_FORM_SUBMISSION_WILL_SEND_DOM_EVENT, "WEBKIT_FORM_SUBMISSION_WILL_SEND_DOM_EVENT" , "send-dom-event" }, |
| 68 | { WEBKIT_FORM_SUBMISSION_WILL_COMPLETE, "WEBKIT_FORM_SUBMISSION_WILL_COMPLETE" , "complete" }, |
| 69 | { 0, NULL, NULL } |
| 70 | }; |
| 71 | |
| 72 | static GType type = 0; |
| 73 | if (G_UNLIKELY(!type)) |
| 74 | type = g_enum_register_static("WebKitFormSubmissionStep" , values); |
| 75 | |
| 76 | return type; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /* Generated data ends here */ |
| 81 | |
| 82 | |