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

Unified Diff: chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h

Issue 417063004: Separate Toolkit specific impl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h
diff --git a/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h b/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h
index 3cb2affa9116a91f9e6a74e41febc62197dd61a2..4881d0a1ab67fbd8ae18f1d5bdc75b6d42fa686e 100644
--- a/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h
+++ b/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.h
@@ -27,26 +27,27 @@ class RenderViewContextMenuMac : public RenderViewContextMenu {
virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
- // RenderViewContextMenuDelegate implementation.
- virtual void UpdateMenuItem(int command_id,
- bool enabled,
- bool hidden,
- const base::string16& title) OVERRIDE;
-
void Show();
protected:
// RenderViewContextMenu implementation.
- virtual void PlatformInit() OVERRIDE;
- virtual void PlatformCancel() OVERRIDE;
virtual bool GetAcceleratorForCommandId(
int command_id,
ui::Accelerator* accelerator) OVERRIDE;
virtual void AppendPlatformEditableItems() OVERRIDE;
private:
- // Adds platform-specific items to the menu.
- void InitPlatformMenu();
+ friend class ToolkitDelegateMac;
+
+ // Adds menu to the platform's toolkit.
+ void InitToolkitMenu();
+
+ void CancelToolkitMenu();
+
+ void UpdateToolkitMenuItem(int command_id,
+ bool enabled,
+ bool hidden,
+ const base::string16& title);
// Adds writing direction submenu.
void AppendBidiSubMenu();

Powered by Google App Engine
This is Rietveld 408576698