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

Unified Diff: content/renderer/context_menu_params_builder.cc

Issue 73963004: [Chromium] Adding Writing direction to the context menu for linux gtk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes under TOOLKIT_GTK Created 7 years, 1 month 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 | « content/public/common/context_menu_params.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/context_menu_params_builder.cc
diff --git a/content/renderer/context_menu_params_builder.cc b/content/renderer/context_menu_params_builder.cc
index f8644592b472363f6dfa7ea72bd86f367125ba6d..a7783d00a681723de11049b3e342fb0725a27a2f 100644
--- a/content/renderer/context_menu_params_builder.cc
+++ b/content/renderer/context_menu_params_builder.cc
@@ -35,11 +35,11 @@ ContextMenuParams ContextMenuParamsBuilder::Build(
params.speech_input_enabled = data.isSpeechInputEnabled;
params.spellcheck_enabled = data.isSpellCheckingEnabled;
params.is_editable = data.isEditable;
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(TOOLKIT_GTK)
params.writing_direction_default = data.writingDirectionDefault;
params.writing_direction_left_to_right = data.writingDirectionLeftToRight;
params.writing_direction_right_to_left = data.writingDirectionRightToLeft;
-#endif // OS_MACOSX
+#endif // OS_MACOSX || defined(TOOLKIT_GTK)
params.edit_flags = data.editFlags;
params.frame_charset = data.frameEncoding.utf8();
params.referrer_policy = data.referrerPolicy;
« no previous file with comments | « content/public/common/context_menu_params.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698