| 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..c6509990b5dc03f696a18b9fbf2cb2fd273d7b1d 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
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +y// Copyright 2014 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -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();
|
|
|