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