| 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/dom_storage/dom_storage_context_impl.h" | 6 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 8 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
| 9 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
| 10 #include "content/browser/web_contents/navigation_controller_impl.h" | 10 #include "content/browser/web_contents/navigation_controller_impl.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 WasHidden(); | 350 WasHidden(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 void TestRenderViewHost::SimulateWasShown() { | 353 void TestRenderViewHost::SimulateWasShown() { |
| 354 WasShown(); | 354 WasShown(); |
| 355 } | 355 } |
| 356 | 356 |
| 357 void TestRenderViewHost::TestOnMsgStartDragging( | 357 void TestRenderViewHost::TestOnMsgStartDragging( |
| 358 const WebDropData& drop_data) { | 358 const WebDropData& drop_data) { |
| 359 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; | 359 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; |
| 360 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); | 360 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d()); |
| 361 } | 361 } |
| 362 | 362 |
| 363 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { | 363 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |
| 364 simulate_fetch_via_proxy_ = proxy; | 364 simulate_fetch_via_proxy_ = proxy; |
| 365 } | 365 } |
| 366 | 366 |
| 367 RenderViewHostImplTestHarness::RenderViewHostImplTestHarness() { | 367 RenderViewHostImplTestHarness::RenderViewHostImplTestHarness() { |
| 368 } | 368 } |
| 369 | 369 |
| 370 RenderViewHostImplTestHarness::~RenderViewHostImplTestHarness() { | 370 RenderViewHostImplTestHarness::~RenderViewHostImplTestHarness() { |
| 371 } | 371 } |
| 372 | 372 |
| 373 TestRenderViewHost* RenderViewHostImplTestHarness::test_rvh() { | 373 TestRenderViewHost* RenderViewHostImplTestHarness::test_rvh() { |
| 374 return static_cast<TestRenderViewHost*>(rvh()); | 374 return static_cast<TestRenderViewHost*>(rvh()); |
| 375 } | 375 } |
| 376 | 376 |
| 377 TestRenderViewHost* RenderViewHostImplTestHarness::pending_test_rvh() { | 377 TestRenderViewHost* RenderViewHostImplTestHarness::pending_test_rvh() { |
| 378 return static_cast<TestRenderViewHost*>(pending_rvh()); | 378 return static_cast<TestRenderViewHost*>(pending_rvh()); |
| 379 } | 379 } |
| 380 | 380 |
| 381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
| 382 return static_cast<TestRenderViewHost*>(active_rvh()); | 382 return static_cast<TestRenderViewHost*>(active_rvh()); |
| 383 } | 383 } |
| 384 | 384 |
| 385 TestWebContents* RenderViewHostImplTestHarness::contents() { | 385 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 386 return static_cast<TestWebContents*>(web_contents()); | 386 return static_cast<TestWebContents*>(web_contents()); |
| 387 } | 387 } |
| 388 | 388 |
| 389 } // namespace content | 389 } // namespace content |
| OLD | NEW |