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

Side by Side Diff: components/renderer_context_menu/render_view_context_menu_base.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
« no previous file with comments | « components/reading_list/reading_list_model.h ('k') | components/rlz/rlz_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_
6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 12 matching lines...) Expand all
23 #include "ppapi/features/features.h" 23 #include "ppapi/features/features.h"
24 #include "ui/base/models/simple_menu_model.h" 24 #include "ui/base/models/simple_menu_model.h"
25 #include "ui/base/page_transition_types.h" 25 #include "ui/base/page_transition_types.h"
26 #include "ui/base/window_open_disposition.h" 26 #include "ui/base/window_open_disposition.h"
27 27
28 namespace content { 28 namespace content {
29 class RenderFrameHost; 29 class RenderFrameHost;
30 class WebContents; 30 class WebContents;
31 } 31 }
32 32
33 namespace gfx {
34 class Point;
35 }
36
37 namespace blink {
38 struct WebMediaPlayerAction;
39 struct WebPluginAction;
40 }
41
42 class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate, 33 class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate,
43 public RenderViewContextMenuProxy { 34 public RenderViewContextMenuProxy {
44 public: 35 public:
45 // A delegate interface to communicate with the toolkit used by 36 // A delegate interface to communicate with the toolkit used by
46 // the embedder. 37 // the embedder.
47 class ToolkitDelegate { 38 class ToolkitDelegate {
48 public: 39 public:
49 virtual ~ToolkitDelegate() {} 40 virtual ~ToolkitDelegate() {}
50 // Initialize the toolkit's menu. 41 // Initialize the toolkit's menu.
51 virtual void Init(ui::SimpleMenuModel* menu_model) = 0; 42 virtual void Init(ui::SimpleMenuModel* menu_model) = 0;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool AppendCustomItems(); 193 bool AppendCustomItems();
203 194
204 std::unique_ptr<ToolkitDelegate> toolkit_delegate_; 195 std::unique_ptr<ToolkitDelegate> toolkit_delegate_;
205 196
206 ScopedVector<ui::SimpleMenuModel> custom_submenus_; 197 ScopedVector<ui::SimpleMenuModel> custom_submenus_;
207 198
208 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); 199 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase);
209 }; 200 };
210 201
211 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ 202 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_
OLDNEW
« no previous file with comments | « components/reading_list/reading_list_model.h ('k') | components/rlz/rlz_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698