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

Side by Side Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.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_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 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 19 matching lines...) Expand all
30 // Set this menu to show for an external tab contents. This 30 // Set this menu to show for an external tab contents. This
31 // only has an effect before Init() is called. 31 // only has an effect before Init() is called.
32 void SetExternal(); 32 void SetExternal();
33 #endif 33 #endif
34 34
35 void UpdateMenuItemStates(); 35 void UpdateMenuItemStates();
36 36
37 // RenderViewContextMenuDelegate implementation. 37 // RenderViewContextMenuDelegate implementation.
38 virtual void UpdateMenuItem(int command_id, 38 virtual void UpdateMenuItem(int command_id,
39 bool enabled, 39 bool enabled,
40 bool hidden,
40 const string16& title) OVERRIDE; 41 const string16& title) OVERRIDE;
41 42
42 protected: 43 protected:
43 // RenderViewContextMenu implementation. 44 // RenderViewContextMenu implementation.
44 virtual void PlatformInit() OVERRIDE; 45 virtual void PlatformInit() OVERRIDE;
45 virtual bool GetAcceleratorForCommandId( 46 virtual bool GetAcceleratorForCommandId(
46 int command_id, 47 int command_id,
47 ui::Accelerator* accelerator) OVERRIDE; 48 ui::Accelerator* accelerator) OVERRIDE;
48 49
49 private: 50 private:
50 // The context menu itself and its contents. 51 // The context menu itself and its contents.
51 scoped_ptr<views::MenuModelAdapter> menu_delegate_; 52 scoped_ptr<views::MenuModelAdapter> menu_delegate_;
52 views::MenuItemView* menu_; // Owned by menu_runner_. 53 views::MenuItemView* menu_; // Owned by menu_runner_.
53 scoped_ptr<views::MenuRunner> menu_runner_; 54 scoped_ptr<views::MenuRunner> menu_runner_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews); 56 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H _ 59 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698