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 #include "content/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/site_instance_impl.h" | 7 #include "content/browser/site_instance_impl.h" |
8 #include "content/browser/web_contents/navigation_controller_impl.h" | 8 #include "content/browser/web_contents/navigation_controller_impl.h" |
9 #include "content/browser/web_contents/test_web_contents.h" | 9 #include "content/browser/web_contents/test_web_contents.h" |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 return gfx::GLSurfaceHandle(); | 195 return gfx::GLSurfaceHandle(); |
196 } | 196 } |
197 | 197 |
198 bool TestRenderWidgetHostView::LockMouse() { | 198 bool TestRenderWidgetHostView::LockMouse() { |
199 return false; | 199 return false; |
200 } | 200 } |
201 | 201 |
202 void TestRenderWidgetHostView::UnlockMouse() { | 202 void TestRenderWidgetHostView::UnlockMouse() { |
203 } | 203 } |
204 | 204 |
205 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 205 TestRenderViewHost::TestRenderViewHost( |
206 RenderViewHostDelegate* delegate, | 206 SiteInstance* instance, |
207 int routing_id, | 207 RenderViewHostDelegate* delegate, |
208 bool swapped_out) | 208 RenderWidgetHostDelegate* widget_delegate, |
| 209 int routing_id, |
| 210 bool swapped_out) |
209 : RenderViewHostImpl(instance, | 211 : RenderViewHostImpl(instance, |
210 delegate, | 212 delegate, |
| 213 widget_delegate, |
211 routing_id, | 214 routing_id, |
212 swapped_out, | 215 swapped_out, |
213 dom_storage::kInvalidSessionStorageNamespaceId), | 216 dom_storage::kInvalidSessionStorageNamespaceId), |
214 render_view_created_(false), | 217 render_view_created_(false), |
215 delete_counter_(NULL), | 218 delete_counter_(NULL), |
216 simulate_fetch_via_proxy_(false), | 219 simulate_fetch_via_proxy_(false), |
217 contents_mime_type_("text/html") { | 220 contents_mime_type_("text/html") { |
218 // For normal RenderViewHosts, this is freed when |Shutdown()| is | 221 // For normal RenderViewHosts, this is freed when |Shutdown()| is |
219 // called. For TestRenderViewHost, the view is explicitly | 222 // called. For TestRenderViewHost, the view is explicitly |
220 // deleted in the destructor below, because | 223 // deleted in the destructor below, because |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 323 |
321 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 324 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
322 return static_cast<TestRenderViewHost*>(active_rvh()); | 325 return static_cast<TestRenderViewHost*>(active_rvh()); |
323 } | 326 } |
324 | 327 |
325 TestWebContents* RenderViewHostImplTestHarness::contents() { | 328 TestWebContents* RenderViewHostImplTestHarness::contents() { |
326 return static_cast<TestWebContents*>(web_contents()); | 329 return static_cast<TestWebContents*>(web_contents()); |
327 } | 330 } |
328 | 331 |
329 } // namespace content | 332 } // namespace content |
OLD | NEW |