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

Side by Side Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_win.h

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
7 7
8 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" 8 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } 12 }
13 13
14 // Windows specific implementation of the render view context menu. 14 // Windows specific implementation of the render view context menu.
15 class RenderViewContextMenuWin : public RenderViewContextMenuViews { 15 class RenderViewContextMenuWin : public RenderViewContextMenuViews {
16 public: 16 public:
17 RenderViewContextMenuWin(content::WebContents* web_contents, 17 RenderViewContextMenuWin(content::RenderFrameHost* render_frame_host,
18 const content::ContextMenuParams& params); 18 const content::ContextMenuParams& params);
19 virtual ~RenderViewContextMenuWin(); 19 virtual ~RenderViewContextMenuWin();
20 20
21 // SimpleMenuModel::Delegate implementation. 21 // SimpleMenuModel::Delegate implementation.
22 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; 22 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
23 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; 23 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
24 24
25 private: 25 private:
26 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuWin); 26 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuWin);
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_ 29 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698