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

Side by Side Diff: chrome/browser/ui/gtk/tab_contents/render_view_context_menu_gtk.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_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/tab_contents/render_view_context_menu.h" 10 #include "chrome/browser/tab_contents/render_view_context_menu.h"
11 #include "chrome/browser/ui/gtk/menu_gtk.h" 11 #include "chrome/browser/ui/gtk/menu_gtk.h"
12 #include "ui/gfx/point.h" 12 #include "ui/gfx/point.h"
13 13
14 namespace content { 14 namespace content {
15 class RenderWidgetHostView; 15 class RenderWidgetHostView;
16 struct ContextMenuParams; 16 struct ContextMenuParams;
17 } 17 }
18 18
19 class RenderViewContextMenuGtk : public RenderViewContextMenu, 19 class RenderViewContextMenuGtk : public RenderViewContextMenu,
20 public MenuGtk::Delegate { 20 public MenuGtk::Delegate {
21 public: 21 public:
22 RenderViewContextMenuGtk(content::WebContents* web_contents, 22 RenderViewContextMenuGtk(content::RenderFrameHost* render_frame_host,
23 const content::ContextMenuParams& params, 23 const content::ContextMenuParams& params,
24 content::RenderWidgetHostView* view); 24 content::RenderWidgetHostView* view);
25 25
26 virtual ~RenderViewContextMenuGtk(); 26 virtual ~RenderViewContextMenuGtk();
27 27
28 // Show the menu at the given location. 28 // Show the menu at the given location.
29 void Popup(const gfx::Point& point); 29 void Popup(const gfx::Point& point);
30 30
31 // Menu::Delegate implementation --------------------------------------------- 31 // Menu::Delegate implementation ---------------------------------------------
32 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE; 32 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE;
(...skipping 24 matching lines...) Expand all
57 void AppendBidiSubMenu(); 57 void AppendBidiSubMenu();
58 58
59 // Model for the BiDi input submenu. 59 // Model for the BiDi input submenu.
60 ui::SimpleMenuModel bidi_submenu_model_; 60 ui::SimpleMenuModel bidi_submenu_model_;
61 61
62 scoped_ptr<MenuGtk> menu_gtk_; 62 scoped_ptr<MenuGtk> menu_gtk_;
63 uint32_t triggering_event_time_; 63 uint32_t triggering_event_time_;
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 66 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698