summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 11:51:27 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 11:51:27 +0000
commit6c8493c5bf17929c6cd6815e8dc80c5038cbbd29 (patch)
treead69c84e7332b9b51fa72cf8a53bcfea4795924a /webkit/glue/context_menu.h
parentdee5464259bc255197d56b250f66ee80b380c2c5 (diff)
downloadchromium_src-6c8493c5bf17929c6cd6815e8dc80c5038cbbd29.zip
chromium_src-6c8493c5bf17929c6cd6815e8dc80c5038cbbd29.tar.gz
chromium_src-6c8493c5bf17929c6cd6815e8dc80c5038cbbd29.tar.bz2
WebKit side is in https://bugs.webkit.org/show_bug.cgi?id=34524
BUG=NONE TEST=Right clicking on a text input field in Web content on OS X should now show a Writing Direction submenu. Clicking on "Left To Right" should align the input to the left, and "Right To Left" should do the opposit. The "Default" menu item should always be disabled. Review URL: http://codereview.chromium.org/566031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu.h')
-rw-r--r--webkit/glue/context_menu.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index b1744df..beced3f 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -73,6 +73,14 @@ struct ContextMenuParams {
// Whether context is editable.
bool is_editable;
+#if defined(OS_MACOSX)
+ // Writing direction menu items.
+ // Currently only used on OS X.
+ int writing_direction_default;
+ int writing_direction_left_to_right;
+ int writing_direction_right_to_left;
+#endif // OS_MACOSX
+
// These flags indicate to the browser whether the renderer believes it is
// able to perform the corresponding action.
int edit_flags;
@@ -101,6 +109,11 @@ struct ContextMenuParams {
misspelled_word(data.misspelledWord),
spellcheck_enabled(data.isSpellCheckingEnabled),
is_editable(data.isEditable),
+#if defined(OS_MACOSX)
+ writing_direction_default(data.writingDirectionDefault),
+ writing_direction_left_to_right(data.writingDirectionLeftToRight),
+ writing_direction_right_to_left(data.writingDirectionRightToLeft),
+#endif // OS_MACOSX
edit_flags(data.editFlags),
security_info(data.securityInfo),
frame_charset(data.frameEncoding.utf8()) {