Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Unified Diff: webkit/glue/context_menu.h

Issue 566031: Chromium side of Writing Direction Context Menu on OS X (Closed)
Patch Set: Fix Avi's comments. Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu.h
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index b1744df0ef94e892d9f7e90e3a4a5d8e406d1f17..beced3f65fcba8986075b4b3f219421817fa40b3 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()) {
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698