| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 CONTENT_EXPORT static RenderViewImpl* Create( | 177 CONTENT_EXPORT static RenderViewImpl* Create( |
| 178 gfx::NativeViewId parent_hwnd, | 178 gfx::NativeViewId parent_hwnd, |
| 179 int32 opener_id, | 179 int32 opener_id, |
| 180 const content::RendererPreferences& renderer_prefs, | 180 const content::RendererPreferences& renderer_prefs, |
| 181 const WebPreferences& webkit_prefs, | 181 const WebPreferences& webkit_prefs, |
| 182 SharedRenderViewCounter* counter, | 182 SharedRenderViewCounter* counter, |
| 183 int32 routing_id, | 183 int32 routing_id, |
| 184 int32 surface_id, | 184 int32 surface_id, |
| 185 int64 session_storage_namespace_id, | 185 int64 session_storage_namespace_id, |
| 186 const string16& frame_name, | 186 const string16& frame_name, |
| 187 int32 next_page_id); | 187 int32 next_page_id, |
| 188 const WebKit::WebScreenInfo& screen_info); |
| 188 | 189 |
| 189 // Returns the RenderViewImpl containing the given WebView. | 190 // Returns the RenderViewImpl containing the given WebView. |
| 190 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 191 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
| 191 | 192 |
| 192 // May return NULL when the view is closing. | 193 // May return NULL when the view is closing. |
| 193 CONTENT_EXPORT WebKit::WebView* webview() const; | 194 CONTENT_EXPORT WebKit::WebView* webview() const; |
| 194 | 195 |
| 195 // WebGraphicsContext3DSwapBuffersClient implementation. | 196 // WebGraphicsContext3DSwapBuffersClient implementation. |
| 196 | 197 |
| 197 // Called by a GraphicsContext associated with this view when swapbuffers | 198 // Called by a GraphicsContext associated with this view when swapbuffers |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 | 714 |
| 714 RenderViewImpl(gfx::NativeViewId parent_hwnd, | 715 RenderViewImpl(gfx::NativeViewId parent_hwnd, |
| 715 int32 opener_id, | 716 int32 opener_id, |
| 716 const content::RendererPreferences& renderer_prefs, | 717 const content::RendererPreferences& renderer_prefs, |
| 717 const WebPreferences& webkit_prefs, | 718 const WebPreferences& webkit_prefs, |
| 718 SharedRenderViewCounter* counter, | 719 SharedRenderViewCounter* counter, |
| 719 int32 routing_id, | 720 int32 routing_id, |
| 720 int32 surface_id, | 721 int32 surface_id, |
| 721 int64 session_storage_namespace_id, | 722 int64 session_storage_namespace_id, |
| 722 const string16& frame_name, | 723 const string16& frame_name, |
| 723 int32 next_page_id); | 724 int32 next_page_id, |
| 725 const WebKit::WebScreenInfo& screen_info); |
| 724 | 726 |
| 725 // Do not delete directly. This class is reference counted. | 727 // Do not delete directly. This class is reference counted. |
| 726 virtual ~RenderViewImpl(); | 728 virtual ~RenderViewImpl(); |
| 727 | 729 |
| 728 void UpdateURL(WebKit::WebFrame* frame); | 730 void UpdateURL(WebKit::WebFrame* frame); |
| 729 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 731 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
| 730 WebKit::WebTextDirection title_direction); | 732 WebKit::WebTextDirection title_direction); |
| 731 void UpdateSessionHistory(WebKit::WebFrame* frame); | 733 void UpdateSessionHistory(WebKit::WebFrame* frame); |
| 732 | 734 |
| 733 // Update current main frame's encoding and send it to browser window. | 735 // Update current main frame's encoding and send it to browser window. |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 // bunch of stuff, you should probably create a helper class and put your | 1290 // bunch of stuff, you should probably create a helper class and put your |
| 1289 // data and methods on that to avoid bloating RenderView more. You can | 1291 // data and methods on that to avoid bloating RenderView more. You can |
| 1290 // use the Observer interface to filter IPC messages and receive frame change | 1292 // use the Observer interface to filter IPC messages and receive frame change |
| 1291 // notifications. | 1293 // notifications. |
| 1292 // --------------------------------------------------------------------------- | 1294 // --------------------------------------------------------------------------- |
| 1293 | 1295 |
| 1294 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1296 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1295 }; | 1297 }; |
| 1296 | 1298 |
| 1297 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1299 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |