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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // RenderViewContextMenuDelegate implementation. 36 // RenderViewContextMenuDelegate implementation.
37 virtual void UpdateMenuItem(int command_id, 37 virtual void UpdateMenuItem(int command_id,
38 bool enabled, 38 bool enabled,
39 bool hidden, 39 bool hidden,
40 const string16& title) OVERRIDE; 40 const string16& title) OVERRIDE;
41 41
42 protected: 42 protected:
43 RenderViewContextMenuViews(content::WebContents* web_contents, 43 RenderViewContextMenuViews(content::WebContents* web_contents,
44 const content::ContextMenuParams& params); 44 const content::ContextMenuParams& params);
45
45 // RenderViewContextMenu implementation. 46 // RenderViewContextMenu implementation.
46 virtual void PlatformInit() OVERRIDE; 47 virtual void PlatformInit() OVERRIDE;
47 virtual void PlatformCancel() OVERRIDE; 48 virtual void PlatformCancel() OVERRIDE;
48 virtual bool GetAcceleratorForCommandId( 49 virtual bool GetAcceleratorForCommandId(
49 int command_id, 50 int command_id,
50 ui::Accelerator* accelerator) OVERRIDE; 51 ui::Accelerator* accelerator) OVERRIDE;
51 52
52 private: 53 private:
54 // Adds writing direction submenu.
55 void AppendBidiSubMenu();
Peter Kasting 2013/12/03 22:52:35 Nit: Blank line below this
pals 2013/12/04 12:54:50 Done.
56 virtual void AppendPlatformEditableItems() OVERRIDE;
57 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
58 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
59 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
60
61 // Model for the BiDi input submenu.
62 ui::SimpleMenuModel bidi_submenu_model_;
63
53 scoped_ptr<views::MenuRunner> menu_runner_; 64 scoped_ptr<views::MenuRunner> menu_runner_;
54 65
55 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews); 66 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews);
56 }; 67 };
57 68
58 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H _ 69 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698