From 79ad030d505ccf79cf10aa9f8189ca3e2f61f6f4 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 25 Jun 2012 13:35:59 +0200 Subject: Imported WebKit commit c4b613825abd39ac739a47d7b4410468fcef66dc (http://svn.webkit.org/repository/webkit/trunk@121147) New snapshot that includes Win32 debug build fix (use SVGAllInOne) --- .../UIProcess/API/gtk/WebKitContextMenuItem.h | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.h (limited to 'Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.h') diff --git a/Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.h b/Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.h new file mode 100644 index 000000000..52d912843 --- /dev/null +++ b/Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.h @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2012 Igalia S.L. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef WebKitContextMenuItem_h +#define WebKitContextMenuItem_h + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define WEBKIT_TYPE_CONTEXT_MENU_ITEM (webkit_context_menu_item_get_type()) +#define WEBKIT_CONTEXT_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_CONTEXT_MENU_ITEM, WebKitContextMenuItem)) +#define WEBKIT_IS_CONTEXT_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_CONTEXT_MENU_ITEM)) +#define WEBKIT_CONTEXT_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_CONTEXT_MENU_ITEM, WebKitContextMenuItemClass)) +#define WEBKIT_IS_CONTEXT_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_CONTEXT_MENU_ITEM)) +#define WEBKIT_CONTEXT_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_CONTEXT_MENU_ITEM, WebKitContextMenuItemClass)) + +typedef struct _WebKitContextMenuItemClass WebKitContextMenuItemClass; +typedef struct _WebKitContextMenuItemPrivate WebKitContextMenuItemPrivate; + +struct _WebKitContextMenuItem { + GInitiallyUnowned parent; + + WebKitContextMenuItemPrivate *priv; +}; + +struct _WebKitContextMenuItemClass { + GInitiallyUnownedClass parent_class; +}; + +WEBKIT_API GType +webkit_context_menu_item_get_type (void); + +WEBKIT_API WebKitContextMenuItem * +webkit_context_menu_item_new (GtkAction *action); + +WEBKIT_API WebKitContextMenuItem * +webkit_context_menu_item_new_from_stock_action (WebKitContextMenuAction action); + +WEBKIT_API WebKitContextMenuItem * +webkit_context_menu_item_new_from_stock_action_with_label (WebKitContextMenuAction action, + const gchar *label); + +WEBKIT_API WebKitContextMenuItem * +webkit_context_menu_item_new_with_submenu (const gchar *label, + WebKitContextMenu *submenu); + +WEBKIT_API WebKitContextMenuItem * +webkit_context_menu_item_new_separator (void); + +WEBKIT_API GtkAction * +webkit_context_menu_item_get_action (WebKitContextMenuItem *item); + +WEBKIT_API WebKitContextMenuAction +webkit_context_menu_item_get_stock_action (WebKitContextMenuItem *item); + +WEBKIT_API gboolean +webkit_context_menu_item_is_separator (WebKitContextMenuItem *item); + +WEBKIT_API void +webkit_context_menu_item_set_submenu (WebKitContextMenuItem *item, + WebKitContextMenu *submenu); + +WEBKIT_API WebKitContextMenu * +webkit_context_menu_item_get_submenu (WebKitContextMenuItem *item); + +G_END_DECLS + +#endif -- cgit v1.2.1