OLD | NEW |
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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 struct ViewMsg_PostMessage_Params; | 84 struct ViewMsg_PostMessage_Params; |
85 struct ViewMsg_StopFinding_Params; | 85 struct ViewMsg_StopFinding_Params; |
86 struct ViewMsg_SwapOut_Params; | 86 struct ViewMsg_SwapOut_Params; |
87 struct WebDropData; | 87 struct WebDropData; |
88 class WebIntentsHost; | 88 class WebIntentsHost; |
89 class WebPluginDelegateProxy; | 89 class WebPluginDelegateProxy; |
90 class WebUIBindings; | 90 class WebUIBindings; |
91 | 91 |
92 namespace content { | 92 namespace content { |
93 class DocumentState; | 93 class DocumentState; |
94 class GuestToEmbedderChannel; | |
95 class NavigationState; | 94 class NavigationState; |
96 class P2PSocketDispatcher; | 95 class P2PSocketDispatcher; |
97 class RenderViewObserver; | 96 class RenderViewObserver; |
98 class RenderViewTest; | 97 class RenderViewTest; |
99 class RendererAccessibility; | 98 class RendererAccessibility; |
100 struct CustomContextMenuContext; | 99 struct CustomContextMenuContext; |
101 struct FileChooserParams; | 100 struct FileChooserParams; |
| 101 |
| 102 namespace old { |
| 103 class GuestToEmbedderChannel; |
| 104 } |
| 105 |
102 } // namespace content | 106 } // namespace content |
103 | 107 |
104 namespace gfx { | 108 namespace gfx { |
105 class Point; | 109 class Point; |
106 class Rect; | 110 class Rect; |
107 } // namespace gfx | 111 } // namespace gfx |
108 | 112 |
109 namespace ui { | 113 namespace ui { |
110 struct SelectedFileInfo; | 114 struct SelectedFileInfo; |
111 } // namespace ui | 115 } // namespace ui |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const webkit_glue::WebPreferences& webkit_prefs, | 208 const webkit_glue::WebPreferences& webkit_prefs, |
205 SharedRenderViewCounter* counter, | 209 SharedRenderViewCounter* counter, |
206 int32 routing_id, | 210 int32 routing_id, |
207 int32 surface_id, | 211 int32 surface_id, |
208 int64 session_storage_namespace_id, | 212 int64 session_storage_namespace_id, |
209 const string16& frame_name, | 213 const string16& frame_name, |
210 bool is_renderer_created, | 214 bool is_renderer_created, |
211 bool swapped_out, | 215 bool swapped_out, |
212 int32 next_page_id, | 216 int32 next_page_id, |
213 const WebKit::WebScreenInfo& screen_info, | 217 const WebKit::WebScreenInfo& screen_info, |
214 content::GuestToEmbedderChannel* guest_to_embedder_channel, | 218 content::old::GuestToEmbedderChannel* guest_to_embedder_channel, |
215 AccessibilityMode accessibility_mode); | 219 AccessibilityMode accessibility_mode); |
216 | 220 |
217 // Returns the RenderViewImpl containing the given WebView. | 221 // Returns the RenderViewImpl containing the given WebView. |
218 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 222 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
219 | 223 |
220 // May return NULL when the view is closing. | 224 // May return NULL when the view is closing. |
221 CONTENT_EXPORT WebKit::WebView* webview() const; | 225 CONTENT_EXPORT WebKit::WebView* webview() const; |
222 | 226 |
223 // WebGraphicsContext3DSwapBuffersClient implementation. | 227 // WebGraphicsContext3DSwapBuffersClient implementation. |
224 | 228 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // no other waiting items in the queue. | 273 // no other waiting items in the queue. |
270 // | 274 // |
271 // Returns true if the chooser was successfully scheduled. False means we | 275 // Returns true if the chooser was successfully scheduled. False means we |
272 // didn't schedule anything. | 276 // didn't schedule anything. |
273 bool ScheduleFileChooser(const content::FileChooserParams& params, | 277 bool ScheduleFileChooser(const content::FileChooserParams& params, |
274 WebKit::WebFileChooserCompletion* completion); | 278 WebKit::WebFileChooserCompletion* completion); |
275 | 279 |
276 // Sets whether the renderer should report load progress to the browser. | 280 // Sets whether the renderer should report load progress to the browser. |
277 void SetReportLoadProgressEnabled(bool enabled); | 281 void SetReportLoadProgressEnabled(bool enabled); |
278 | 282 |
279 content::GuestToEmbedderChannel* GetGuestToEmbedderChannel() const; | 283 content::old::GuestToEmbedderChannel* GetGuestToEmbedderChannel() const; |
280 void SetGuestToEmbedderChannel(content::GuestToEmbedderChannel* channel); | 284 void SetGuestToEmbedderChannel(content::old::GuestToEmbedderChannel* channel); |
281 PP_Instance guest_pp_instance() const { return guest_pp_instance_; } | 285 PP_Instance guest_pp_instance() const { return guest_pp_instance_; } |
282 void set_guest_pp_instance(PP_Instance instance) { | 286 void set_guest_pp_instance(PP_Instance instance) { |
283 guest_pp_instance_ = instance; | 287 guest_pp_instance_ = instance; |
284 } | 288 } |
285 void set_guest_graphics_resource(const ppapi::HostResource& resource) { | 289 void set_guest_graphics_resource(const ppapi::HostResource& resource) { |
286 guest_graphics_resource_ = resource; | 290 guest_graphics_resource_ = resource; |
287 } | 291 } |
288 const ppapi::HostResource& guest_graphics_resource() const { | 292 const ppapi::HostResource& guest_graphics_resource() const { |
289 return guest_graphics_resource_; | 293 return guest_graphics_resource_; |
290 } | 294 } |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 const webkit_glue::WebPreferences& webkit_prefs, | 823 const webkit_glue::WebPreferences& webkit_prefs, |
820 SharedRenderViewCounter* counter, | 824 SharedRenderViewCounter* counter, |
821 int32 routing_id, | 825 int32 routing_id, |
822 int32 surface_id, | 826 int32 surface_id, |
823 int64 session_storage_namespace_id, | 827 int64 session_storage_namespace_id, |
824 const string16& frame_name, | 828 const string16& frame_name, |
825 bool is_renderer_created, | 829 bool is_renderer_created, |
826 bool swapped_out, | 830 bool swapped_out, |
827 int32 next_page_id, | 831 int32 next_page_id, |
828 const WebKit::WebScreenInfo& screen_info, | 832 const WebKit::WebScreenInfo& screen_info, |
829 content::GuestToEmbedderChannel* guest_to_embedder_channel, | 833 content::old::GuestToEmbedderChannel* |
| 834 guest_to_embedder_channel, |
830 AccessibilityMode accessibility_mode); | 835 AccessibilityMode accessibility_mode); |
831 | 836 |
832 // Do not delete directly. This class is reference counted. | 837 // Do not delete directly. This class is reference counted. |
833 virtual ~RenderViewImpl(); | 838 virtual ~RenderViewImpl(); |
834 | 839 |
835 void UpdateURL(WebKit::WebFrame* frame); | 840 void UpdateURL(WebKit::WebFrame* frame); |
836 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 841 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
837 WebKit::WebTextDirection title_direction); | 842 WebKit::WebTextDirection title_direction); |
838 void UpdateSessionHistory(WebKit::WebFrame* frame); | 843 void UpdateSessionHistory(WebKit::WebFrame* frame); |
839 void SendUpdateState(const WebKit::WebHistoryItem& item); | 844 void SendUpdateState(const WebKit::WebHistoryItem& item); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 #if defined(OS_WIN) | 1410 #if defined(OS_WIN) |
1406 // The ID of the focused NPAPI plug-in. | 1411 // The ID of the focused NPAPI plug-in. |
1407 int focused_plugin_id_; | 1412 int focused_plugin_id_; |
1408 #endif | 1413 #endif |
1409 | 1414 |
1410 // Allows JS to access DOM automation. The JS object is only exposed when the | 1415 // Allows JS to access DOM automation. The JS object is only exposed when the |
1411 // DOM automation bindings are enabled. | 1416 // DOM automation bindings are enabled. |
1412 scoped_ptr<DomAutomationController> dom_automation_controller_; | 1417 scoped_ptr<DomAutomationController> dom_automation_controller_; |
1413 | 1418 |
1414 // Channel for communication with embedding renderer, if it exists. | 1419 // Channel for communication with embedding renderer, if it exists. |
1415 scoped_refptr<content::GuestToEmbedderChannel> guest_to_embedder_channel_; | 1420 scoped_refptr<content::old::GuestToEmbedderChannel> |
| 1421 guest_to_embedder_channel_; |
1416 | 1422 |
1417 // The pepper instance identifer for this guest RenderView. | 1423 // The pepper instance identifer for this guest RenderView. |
1418 PP_Instance guest_pp_instance_; | 1424 PP_Instance guest_pp_instance_; |
1419 | 1425 |
1420 // The ppapi::HostResource associated with the on-screen context for this | 1426 // The ppapi::HostResource associated with the on-screen context for this |
1421 // guest RenderView. | 1427 // guest RenderView. |
1422 ppapi::HostResource guest_graphics_resource_; | 1428 ppapi::HostResource guest_graphics_resource_; |
1423 | 1429 |
1424 // This graphics context is initialized once GuestReady() is called. | 1430 // This graphics context is initialized once GuestReady() is called. |
1425 WebGraphicsContext3DCommandBufferImpl* guest_uninitialized_context_; | 1431 WebGraphicsContext3DCommandBufferImpl* guest_uninitialized_context_; |
(...skipping 12 matching lines...) Expand all Loading... |
1438 // bunch of stuff, you should probably create a helper class and put your | 1444 // bunch of stuff, you should probably create a helper class and put your |
1439 // data and methods on that to avoid bloating RenderView more. You can | 1445 // data and methods on that to avoid bloating RenderView more. You can |
1440 // use the Observer interface to filter IPC messages and receive frame change | 1446 // use the Observer interface to filter IPC messages and receive frame change |
1441 // notifications. | 1447 // notifications. |
1442 // --------------------------------------------------------------------------- | 1448 // --------------------------------------------------------------------------- |
1443 | 1449 |
1444 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1450 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1445 }; | 1451 }; |
1446 | 1452 |
1447 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1453 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |