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

Unified Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h

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: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
diff --git a/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h b/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
index 0b58ee17332586e31d36835816152c20c934e0ec..a6128535232f3c25c877aa0f2ba3f476ceb46c2b 100644
--- a/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
+++ b/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
@@ -42,6 +42,7 @@ class RenderViewContextMenuViews : public RenderViewContextMenu {
protected:
RenderViewContextMenuViews(content::WebContents* web_contents,
const content::ContextMenuParams& params);
+
// RenderViewContextMenu implementation.
virtual void PlatformInit() OVERRIDE;
virtual void PlatformCancel() OVERRIDE;
@@ -50,6 +51,16 @@ class RenderViewContextMenuViews : public RenderViewContextMenu {
ui::Accelerator* accelerator) OVERRIDE;
private:
+ // Adds writing direction submenu.
+ void AppendBidiSubMenu();
Peter Kasting 2013/12/03 22:52:35 Nit: Blank line below this
pals 2013/12/04 12:54:50 Done.
+ virtual void AppendPlatformEditableItems() OVERRIDE;
+ virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
+ virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
+ virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
+
+ // Model for the BiDi input submenu.
+ ui::SimpleMenuModel bidi_submenu_model_;
+
scoped_ptr<views::MenuRunner> menu_runner_;
DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews);

Powered by Google App Engine
This is Rietveld 408576698