OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 public: | 179 public: |
180 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the | 180 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the |
181 // parent of the WebView HWND that will be created. If this is a constrained | 181 // parent of the WebView HWND that will be created. If this is a constrained |
182 // popup or as a new tab, opener_id is the routing ID of the RenderView | 182 // popup or as a new tab, opener_id is the routing ID of the RenderView |
183 // responsible for creating this RenderView (corresponding to parent_hwnd). | 183 // responsible for creating this RenderView (corresponding to parent_hwnd). |
184 // |counter| is either a currently initialized counter, or NULL (in which case | 184 // |counter| is either a currently initialized counter, or NULL (in which case |
185 // we treat this RenderView as a top level window). | 185 // we treat this RenderView as a top level window). |
186 static RenderView* Create( | 186 static RenderView* Create( |
187 RenderThreadBase* render_thread, | 187 RenderThreadBase* render_thread, |
188 gfx::NativeViewId parent_hwnd, | 188 gfx::NativeViewId parent_hwnd, |
| 189 gfx::PluginWindowHandle compositing_surface, |
189 int32 opener_id, | 190 int32 opener_id, |
190 const RendererPreferences& renderer_prefs, | 191 const RendererPreferences& renderer_prefs, |
191 const WebPreferences& webkit_prefs, | 192 const WebPreferences& webkit_prefs, |
192 SharedRenderViewCounter* counter, | 193 SharedRenderViewCounter* counter, |
193 int32 routing_id, | 194 int32 routing_id, |
194 int64 session_storage_namespace_id, | 195 int64 session_storage_namespace_id, |
195 const string16& frame_name); | 196 const string16& frame_name); |
196 | 197 |
197 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 198 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
198 // been closed but not yet destroyed are excluded). | 199 // been closed but not yet destroyed are excluded). |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 }; | 677 }; |
677 | 678 |
678 enum ErrorPageType { | 679 enum ErrorPageType { |
679 DNS_ERROR, | 680 DNS_ERROR, |
680 HTTP_404, | 681 HTTP_404, |
681 CONNECTION_ERROR, | 682 CONNECTION_ERROR, |
682 }; | 683 }; |
683 | 684 |
684 RenderView(RenderThreadBase* render_thread, | 685 RenderView(RenderThreadBase* render_thread, |
685 gfx::NativeViewId parent_hwnd, | 686 gfx::NativeViewId parent_hwnd, |
| 687 gfx::PluginWindowHandle compositing_surface, |
686 int32 opener_id, | 688 int32 opener_id, |
687 const RendererPreferences& renderer_prefs, | 689 const RendererPreferences& renderer_prefs, |
688 const WebPreferences& webkit_prefs, | 690 const WebPreferences& webkit_prefs, |
689 SharedRenderViewCounter* counter, | 691 SharedRenderViewCounter* counter, |
690 int32 routing_id, | 692 int32 routing_id, |
691 int64 session_storage_namespace_id, | 693 int64 session_storage_namespace_id, |
692 const string16& frame_name); | 694 const string16& frame_name); |
693 | 695 |
694 // Do not delete directly. This class is reference counted. | 696 // Do not delete directly. This class is reference counted. |
695 virtual ~RenderView(); | 697 virtual ~RenderView(); |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 // bunch of stuff, you should probably create a helper class and put your | 1325 // bunch of stuff, you should probably create a helper class and put your |
1324 // data and methods on that to avoid bloating RenderView more. You can use | 1326 // data and methods on that to avoid bloating RenderView more. You can use |
1325 // the Observer interface to filter IPC messages and receive frame change | 1327 // the Observer interface to filter IPC messages and receive frame change |
1326 // notifications. | 1328 // notifications. |
1327 // --------------------------------------------------------------------------- | 1329 // --------------------------------------------------------------------------- |
1328 | 1330 |
1329 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1331 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1330 }; | 1332 }; |
1331 | 1333 |
1332 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1334 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |