OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "components/renderer_context_menu/context_menu_content_type.h" | 14 #include "components/renderer_context_menu/context_menu_content_type.h" |
15 #include "components/renderer_context_menu/render_view_context_menu_observer.h" | 15 #include "components/renderer_context_menu/render_view_context_menu_observer.h" |
16 #include "components/renderer_context_menu/render_view_context_menu_proxy.h" | 16 #include "components/renderer_context_menu/render_view_context_menu_proxy.h" |
17 #include "content/public/common/context_menu_params.h" | 17 #include "content/public/common/context_menu_params.h" |
18 #include "content/public/common/page_transition_types.h" | |
19 #include "ui/base/models/simple_menu_model.h" | 18 #include "ui/base/models/simple_menu_model.h" |
| 19 #include "ui/base/page_transition_types.h" |
20 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class RenderFrameHost; | 23 class RenderFrameHost; |
24 class WebContents; | 24 class WebContents; |
25 } | 25 } |
26 | 26 |
27 namespace gfx { | 27 namespace gfx { |
28 class Point; | 28 class Point; |
29 } | 29 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual void AppendPlatformEditableItems() {} | 151 virtual void AppendPlatformEditableItems() {} |
152 | 152 |
153 content::RenderFrameHost* GetRenderFrameHost(); | 153 content::RenderFrameHost* GetRenderFrameHost(); |
154 | 154 |
155 bool IsCustomItemChecked(int id) const; | 155 bool IsCustomItemChecked(int id) const; |
156 bool IsCustomItemEnabled(int id) const; | 156 bool IsCustomItemEnabled(int id) const; |
157 | 157 |
158 // Opens the specified URL string in a new tab. | 158 // Opens the specified URL string in a new tab. |
159 void OpenURL(const GURL& url, const GURL& referrer, | 159 void OpenURL(const GURL& url, const GURL& referrer, |
160 WindowOpenDisposition disposition, | 160 WindowOpenDisposition disposition, |
161 content::PageTransition transition); | 161 ui::PageTransition transition); |
162 | 162 |
163 content::ContextMenuParams params_; | 163 content::ContextMenuParams params_; |
164 content::WebContents* source_web_contents_; | 164 content::WebContents* source_web_contents_; |
165 content::BrowserContext* browser_context_; | 165 content::BrowserContext* browser_context_; |
166 | 166 |
167 ui::SimpleMenuModel menu_model_; | 167 ui::SimpleMenuModel menu_model_; |
168 | 168 |
169 // Renderer's frame id. | 169 // Renderer's frame id. |
170 int render_frame_id_; | 170 int render_frame_id_; |
171 | 171 |
(...skipping 11 matching lines...) Expand all Loading... |
183 | 183 |
184 // The RenderFrameHost's IDs. | 184 // The RenderFrameHost's IDs. |
185 int render_process_id_; | 185 int render_process_id_; |
186 | 186 |
187 scoped_ptr<ToolkitDelegate> toolkit_delegate_; | 187 scoped_ptr<ToolkitDelegate> toolkit_delegate_; |
188 | 188 |
189 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); | 189 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); |
190 }; | 190 }; |
191 | 191 |
192 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 192 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
OLD | NEW |