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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_mac.h

Issue 8370033: Add a 'hidden' parameter to RenderViewContextMenuProxy::UpdateMenuItem(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 RenderViewContextMenuMac(TabContents* web_contents, 22 RenderViewContextMenuMac(TabContents* web_contents,
23 const ContextMenuParams& params, 23 const ContextMenuParams& params,
24 NSView* parent_view); 24 NSView* parent_view);
25 virtual ~RenderViewContextMenuMac(); 25 virtual ~RenderViewContextMenuMac();
26 virtual void ExecuteCommand(int id); 26 virtual void ExecuteCommand(int id);
27 27
28 // RenderViewContextMenuDelegate implementation. 28 // RenderViewContextMenuDelegate implementation.
29 virtual void UpdateMenuItem(int command_id, 29 virtual void UpdateMenuItem(int command_id,
30 bool enabled, 30 bool enabled,
31 bool hidden,
31 const string16& title) OVERRIDE; 32 const string16& title) OVERRIDE;
32 33
33 protected: 34 protected:
34 // RenderViewContextMenu implementation- 35 // RenderViewContextMenu implementation-
35 virtual void PlatformInit(); 36 virtual void PlatformInit();
36 virtual bool GetAcceleratorForCommandId( 37 virtual bool GetAcceleratorForCommandId(
37 int command_id, 38 int command_id,
38 ui::Accelerator* accelerator); 39 ui::Accelerator* accelerator);
39 40
40 virtual void LookUpInDictionary(); 41 virtual void LookUpInDictionary();
41 42
42 void InitPlatformMenu(); 43 void InitPlatformMenu();
43 private: 44 private:
44 scoped_nsobject<MenuController> menuController_; 45 scoped_nsobject<MenuController> menuController_;
45 NSView* parent_view_; // parent view 46 NSView* parent_view_; // parent view
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ 49 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698