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/tab_contents/navigation_controller_impl.h" | 8 #include "content/browser/tab_contents/navigation_controller_impl.h" |
9 #include "content/browser/tab_contents/test_tab_contents.h" | 9 #include "content/browser/tab_contents/test_tab_contents.h" |
10 #include "content/common/dom_storage_common.h" | 10 #include "content/common/dom_storage_common.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 void TestRenderViewHost::SimulateWasHidden() { | 282 void TestRenderViewHost::SimulateWasHidden() { |
283 WasHidden(); | 283 WasHidden(); |
284 } | 284 } |
285 | 285 |
286 void TestRenderViewHost::SimulateWasRestored() { | 286 void TestRenderViewHost::SimulateWasRestored() { |
287 WasRestored(); | 287 WasRestored(); |
288 } | 288 } |
289 | 289 |
290 bool TestRenderViewHost::TestOnMessageReceived(const IPC::Message& msg) { | |
291 return OnMessageReceived(msg); | |
292 } | |
293 | |
294 void TestRenderViewHost::TestOnMsgStartDragging( | 290 void TestRenderViewHost::TestOnMsgStartDragging( |
295 const WebDropData& drop_data) { | 291 const WebDropData& drop_data) { |
296 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; | 292 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; |
297 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); | 293 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); |
298 } | 294 } |
299 | 295 |
300 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { | 296 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |
301 simulate_fetch_via_proxy_ = proxy; | 297 simulate_fetch_via_proxy_ = proxy; |
302 } | 298 } |
303 | 299 |
(...skipping 13 matching lines...) Expand all Loading... |
317 | 313 |
318 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 314 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
319 return static_cast<TestRenderViewHost*>(active_rvh()); | 315 return static_cast<TestRenderViewHost*>(active_rvh()); |
320 } | 316 } |
321 | 317 |
322 TestTabContents* RenderViewHostImplTestHarness::contents() { | 318 TestTabContents* RenderViewHostImplTestHarness::contents() { |
323 return static_cast<TestTabContents*>(web_contents()); | 319 return static_cast<TestTabContents*>(web_contents()); |
324 } | 320 } |
325 | 321 |
326 } // namespace content | 322 } // namespace content |
OLD | NEW |