| 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..e5f568799be2c734e3c9b54dc20c8002c009cea8 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,29 @@ 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();
|
| +
|
| + // Cancels the menu.
|
| + void CancelToolkitMenu();
|
| +
|
| + // Updates the status and text of the specified context-menu item.
|
| + void UpdateToolkitMenuItem(int command_id,
|
| + bool enabled,
|
| + bool hidden,
|
| + const base::string16& title);
|
|
|
| // Adds writing direction submenu.
|
| void AppendBidiSubMenu();
|
|
|