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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const content::RendererPreferences& renderer_prefs, | 189 const content::RendererPreferences& renderer_prefs, |
190 const WebPreferences& webkit_prefs, | 190 const WebPreferences& webkit_prefs, |
191 SharedRenderViewCounter* counter, | 191 SharedRenderViewCounter* counter, |
192 int32 routing_id, | 192 int32 routing_id, |
193 int32 surface_id, | 193 int32 surface_id, |
194 int64 session_storage_namespace_id, | 194 int64 session_storage_namespace_id, |
195 const string16& frame_name, | 195 const string16& frame_name, |
196 bool is_renderer_created, | 196 bool is_renderer_created, |
197 bool swapped_out, | 197 bool swapped_out, |
198 int32 next_page_id, | 198 int32 next_page_id, |
199 const WebKit::WebScreenInfo& screen_info, | |
200 bool guest, | 199 bool guest, |
201 AccessibilityMode accessibility_mode); | 200 AccessibilityMode accessibility_mode); |
202 | 201 |
203 // Returns the RenderViewImpl containing the given WebView. | 202 // Returns the RenderViewImpl containing the given WebView. |
204 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 203 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
205 | 204 |
206 // May return NULL when the view is closing. | 205 // May return NULL when the view is closing. |
207 CONTENT_EXPORT WebKit::WebView* webview() const; | 206 CONTENT_EXPORT WebKit::WebView* webview() const; |
208 | 207 |
209 // WebGraphicsContext3DSwapBuffersClient implementation. | 208 // WebGraphicsContext3DSwapBuffersClient implementation. |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 const content::RendererPreferences& renderer_prefs, | 744 const content::RendererPreferences& renderer_prefs, |
746 const WebPreferences& webkit_prefs, | 745 const WebPreferences& webkit_prefs, |
747 SharedRenderViewCounter* counter, | 746 SharedRenderViewCounter* counter, |
748 int32 routing_id, | 747 int32 routing_id, |
749 int32 surface_id, | 748 int32 surface_id, |
750 int64 session_storage_namespace_id, | 749 int64 session_storage_namespace_id, |
751 const string16& frame_name, | 750 const string16& frame_name, |
752 bool is_renderer_created, | 751 bool is_renderer_created, |
753 bool swapped_out, | 752 bool swapped_out, |
754 int32 next_page_id, | 753 int32 next_page_id, |
755 const WebKit::WebScreenInfo& screen_info, | |
756 bool guest, | 754 bool guest, |
757 AccessibilityMode accessibility_mode); | 755 AccessibilityMode accessibility_mode); |
758 | 756 |
759 // Do not delete directly. This class is reference counted. | 757 // Do not delete directly. This class is reference counted. |
760 virtual ~RenderViewImpl(); | 758 virtual ~RenderViewImpl(); |
761 | 759 |
762 void UpdateURL(WebKit::WebFrame* frame); | 760 void UpdateURL(WebKit::WebFrame* frame); |
763 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 761 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
764 WebKit::WebTextDirection title_direction); | 762 WebKit::WebTextDirection title_direction); |
765 void UpdateSessionHistory(WebKit::WebFrame* frame); | 763 void UpdateSessionHistory(WebKit::WebFrame* frame); |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 // bunch of stuff, you should probably create a helper class and put your | 1341 // bunch of stuff, you should probably create a helper class and put your |
1344 // data and methods on that to avoid bloating RenderView more. You can | 1342 // data and methods on that to avoid bloating RenderView more. You can |
1345 // use the Observer interface to filter IPC messages and receive frame change | 1343 // use the Observer interface to filter IPC messages and receive frame change |
1346 // notifications. | 1344 // notifications. |
1347 // --------------------------------------------------------------------------- | 1345 // --------------------------------------------------------------------------- |
1348 | 1346 |
1349 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1347 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1350 }; | 1348 }; |
1351 | 1349 |
1352 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1350 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |