diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/platform/ContextMenuItem.h | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/platform/ContextMenuItem.h')
-rw-r--r-- | WebCore/platform/ContextMenuItem.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/WebCore/platform/ContextMenuItem.h b/WebCore/platform/ContextMenuItem.h index 5fb2681..52c4d1b 100644 --- a/WebCore/platform/ContextMenuItem.h +++ b/WebCore/platform/ContextMenuItem.h @@ -120,6 +120,10 @@ namespace WebCore { ContextMenuItemTagPDFSinglePageScrolling, ContextMenuItemTagPDFFacingPagesScrolling, ContextMenuItemTagInspectElement, + ContextMenuItemTagTextDirectionMenu, // Text Direction sub-menu + ContextMenuItemTagTextDirectionDefault, + ContextMenuItemTagTextDirectionLeftToRight, + ContextMenuItemTagTextDirectionRightToLeft, ContextMenuItemBaseApplicationTag = 10000 }; @@ -170,7 +174,21 @@ namespace WebCore { #elif defined ANDROID typedef void* PlatformMenuItemDescription; #elif PLATFORM(WX) - typedef wxMenuItem* PlatformMenuItemDescription; + struct PlatformMenuItemDescription { + PlatformMenuItemDescription() + : type(ActionType), + action(ContextMenuItemTagNoAction), + checked(false), + enabled(true) + {} + + ContextMenuItemType type; + ContextMenuAction action; + String title; + wxMenu * subMenu; + bool checked; + bool enabled; + }; #else typedef void* PlatformMenuItemDescription; #endif |