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

Unified Diff: content/renderer/context_menu_params_builder.cc

Issue 83163002: [Aura] Adding Writing direction to the context menu for Aura. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Aura-CrOS-Win Created 7 years 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
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 1285e27b32b39a3d61b99fe4beeeeb541c3f2f37..c05be28537ce9a1fb9a8d769f81a91949d87ba89 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) || defined(TOOLKIT_GTK)
+#if defined(OS_MACOSX) || defined(TOOLKIT_GTK) || defined(USE_AURA)
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 || defined(TOOLKIT_GTK)
+#endif // OS_MACOSX || TOOLKIT_GTK || USE_AURA
params.edit_flags = data.editFlags;
params.frame_charset = data.frameEncoding.utf8();
params.referrer_policy = data.referrerPolicy;
« content/public/common/context_menu_params.h ('K') | « 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