From 643ca7872b450ea4efacab6188849e5aac2ba161 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 15 Dec 2009 10:12:09 +0000 Subject: Merge webkit.org at r51976 : Initial merge by git. Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43 --- WebCore/platform/ContextMenuItem.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'WebCore/platform/ContextMenuItem.h') diff --git a/WebCore/platform/ContextMenuItem.h b/WebCore/platform/ContextMenuItem.h index 6b9d0a9..b4c97a5 100644 --- a/WebCore/platform/ContextMenuItem.h +++ b/WebCore/platform/ContextMenuItem.h @@ -143,6 +143,7 @@ namespace WebCore { ContextMenuItemTagCapitalize, ContextMenuItemTagChangeBack, #endif + ContextMenuItemBaseCustomTag = 5000, ContextMenuItemBaseApplicationTag = 10000 }; @@ -210,11 +211,24 @@ namespace WebCore { }; #elif PLATFORM(HAIKU) typedef BMenuItem* PlatformMenuItemDescription; +#elif PLATFORM(CHROMIUM) + struct PlatformMenuItemDescription { + PlatformMenuItemDescription() + : type(ActionType) + , action(ContextMenuItemTagNoAction) + , checked(false) + , enabled(true) { } + ContextMenuItemType type; + ContextMenuAction action; + String title; + bool checked; + bool enabled; + }; #else typedef void* PlatformMenuItemDescription; #endif - class ContextMenuItem { + class ContextMenuItem : public FastAllocBase { public: ContextMenuItem(PlatformMenuItemDescription); ContextMenuItem(ContextMenu* subMenu = 0); @@ -239,7 +253,8 @@ namespace WebCore { void setSubMenu(ContextMenu*); void setChecked(bool = true); - + bool checked() const; + void setEnabled(bool = true); bool enabled() const; -- cgit v1.1