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

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

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/tab_contents/render_view_context_menu.h" 11 #include "chrome/browser/tab_contents/render_view_context_menu.h"
12 #include "chrome/browser/ui/gtk/menu_gtk.h" 12 #include "chrome/browser/ui/gtk/menu_gtk.h"
13 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
14 14
15 class RenderWidgetHostView; 15 class RenderWidgetHostView;
16
17 namespace content {
16 struct ContextMenuParams; 18 struct ContextMenuParams;
19 }
17 20
18 class RenderViewContextMenuGtk : public RenderViewContextMenu, 21 class RenderViewContextMenuGtk : public RenderViewContextMenu,
19 public MenuGtk::Delegate { 22 public MenuGtk::Delegate {
20 public: 23 public:
21 RenderViewContextMenuGtk(content::WebContents* web_contents, 24 RenderViewContextMenuGtk(content::WebContents* web_contents,
22 const ContextMenuParams& params, 25 const content::ContextMenuParams& params,
23 RenderWidgetHostView* view); 26 RenderWidgetHostView* view);
24 27
25 virtual ~RenderViewContextMenuGtk(); 28 virtual ~RenderViewContextMenuGtk();
26 29
27 // Show the menu at the given location. 30 // Show the menu at the given location.
28 void Popup(const gfx::Point& point); 31 void Popup(const gfx::Point& point);
29 32
30 // Menu::Delegate implementation --------------------------------------------- 33 // Menu::Delegate implementation ---------------------------------------------
31 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE; 34 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE;
32 35
(...skipping 10 matching lines...) Expand all
43 virtual bool GetAcceleratorForCommandId( 46 virtual bool GetAcceleratorForCommandId(
44 int command_id, 47 int command_id,
45 ui::Accelerator* accelerator) OVERRIDE; 48 ui::Accelerator* accelerator) OVERRIDE;
46 49
47 private: 50 private:
48 scoped_ptr<MenuGtk> menu_gtk_; 51 scoped_ptr<MenuGtk> menu_gtk_;
49 uint32_t triggering_event_time_; 52 uint32_t triggering_event_time_;
50 }; 53 };
51 54
52 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_ 55 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698