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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 300 } |
301 | 301 |
302 void TestRenderViewHost::SimulateSwapOutACK() { | 302 void TestRenderViewHost::SimulateSwapOutACK() { |
303 OnSwapOutACK(); | 303 OnSwapOutACK(); |
304 } | 304 } |
305 | 305 |
306 void TestRenderViewHost::SimulateWasHidden() { | 306 void TestRenderViewHost::SimulateWasHidden() { |
307 WasHidden(); | 307 WasHidden(); |
308 } | 308 } |
309 | 309 |
310 void TestRenderViewHost::SimulateWasRestored() { | 310 void TestRenderViewHost::SimulateWasShown() { |
311 WasRestored(); | 311 WasShown(); |
312 } | 312 } |
313 | 313 |
314 void TestRenderViewHost::TestOnMsgStartDragging( | 314 void TestRenderViewHost::TestOnMsgStartDragging( |
315 const WebDropData& drop_data) { | 315 const WebDropData& drop_data) { |
316 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; | 316 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; |
317 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); | 317 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); |
318 } | 318 } |
319 | 319 |
320 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { | 320 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |
321 simulate_fetch_via_proxy_ = proxy; | 321 simulate_fetch_via_proxy_ = proxy; |
(...skipping 15 matching lines...) Expand all Loading... |
337 | 337 |
338 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 338 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
339 return static_cast<TestRenderViewHost*>(active_rvh()); | 339 return static_cast<TestRenderViewHost*>(active_rvh()); |
340 } | 340 } |
341 | 341 |
342 TestWebContents* RenderViewHostImplTestHarness::contents() { | 342 TestWebContents* RenderViewHostImplTestHarness::contents() { |
343 return static_cast<TestWebContents*>(web_contents()); | 343 return static_cast<TestWebContents*>(web_contents()); |
344 } | 344 } |
345 | 345 |
346 } // namespace content | 346 } // namespace content |
OLD | NEW |