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

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

Issue 122027: Remove the Menu object, converting all the remaining callers to use Menu2. I'... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTERNAL_WIN_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/tab_contents/render_view_context_menu_win.h" 10 #include "chrome/browser/tab_contents/render_view_context_menu_win.h"
11 11
12 // This class provides a facility for an external host to customize the context 12 // This class provides a facility for an external host to customize the context
13 // menu displayed in Chrome. 13 // menu displayed in Chrome.
14 class RenderViewContextMenuExternalWin : public RenderViewContextMenuWin { 14 class RenderViewContextMenuExternalWin : public RenderViewContextMenuWin {
15 public: 15 public:
16 RenderViewContextMenuExternalWin(TabContents* tab_contents, 16 RenderViewContextMenuExternalWin(TabContents* tab_contents,
17 const ContextMenuParams& params, 17 const ContextMenuParams& params,
18 HWND window,
19 const std::vector<int> disabled_menu_ids); 18 const std::vector<int> disabled_menu_ids);
20 19
21 ~RenderViewContextMenuExternalWin() {} 20 ~RenderViewContextMenuExternalWin() {}
22 21
23 protected: 22 protected:
24 // RenderViewContextMenuWin overrides -------------------------------------- 23 // RenderViewContextMenuWin overrides --------------------------------------
25 virtual void AppendMenuItem(int id); 24 virtual void AppendMenuItem(int id);
26 25
27 private: 26 private:
28 // Contains the list of context menu ids to be disabled. 27 // Contains the list of context menu ids to be disabled.
29 std::vector<int> disabled_menu_ids_; 28 std::vector<int> disabled_menu_ids_;
30 }; 29 };
31 30
32 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ 31 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container.cc ('k') | chrome/browser/tab_contents/render_view_context_menu_external_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698