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

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

Issue 159471: Merge 21466 - Allow the browser to send actions back to the render for media ... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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
Property Changes:
Added: svn:mergeinfo
Merged /trunk/src/chrome/browser/views/tab_contents/render_view_context_menu_external_win.h:r21466
Merged /branches/chrome_webkit_merge_branch/chrome/browser/views/tab_contents/render_view_context_menu_external_win.h:r69-2775
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/views/tab_contents/render_view_context_menu_win.h" 10 #include "chrome/browser/views/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 const std::vector<int> disabled_menu_ids); 18 const std::vector<int> disabled_menu_ids);
19 19
20 ~RenderViewContextMenuExternalWin() {} 20 virtual ~RenderViewContextMenuExternalWin() {}
21 21
22 protected: 22 protected:
23 // RenderViewContextMenuWin overrides -------------------------------------- 23 // RenderViewContextMenuWin overrides --------------------------------------
24 virtual void AppendMenuItem(int id); 24 virtual void AppendMenuItem(int id);
25 25
26 // RenderViewContextMenu override 26 // RenderViewContextMenu override
27 virtual void DoInit(); 27 virtual void DoInit();
28 28
29 private: 29 private:
30 // Contains the list of context menu ids to be disabled. 30 // Contains the list of context menu ids to be disabled.
31 std::vector<int> disabled_menu_ids_; 31 std::vector<int> disabled_menu_ids_;
32 }; 32 };
33 33
34 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_ 34 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_EXTERNAL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698