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_render_view_host.h" | 5 #include "content/browser/renderer_host/test_render_view_host.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
10 #include "content/browser/renderer_host/test_backing_store.h" | 10 #include "content/browser/renderer_host/test_backing_store.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 void TestRenderViewHost::SimulateWasHidden() { | 363 void TestRenderViewHost::SimulateWasHidden() { |
364 WasHidden(); | 364 WasHidden(); |
365 } | 365 } |
366 | 366 |
367 void TestRenderViewHost::SimulateWasShown() { | 367 void TestRenderViewHost::SimulateWasShown() { |
368 WasShown(); | 368 WasShown(); |
369 } | 369 } |
370 | 370 |
371 void TestRenderViewHost::TestOnStartDragging( | 371 void TestRenderViewHost::TestOnStartDragging( |
372 const DropData& drop_data) { | 372 const DropData& drop_data) { |
373 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; | 373 blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery; |
374 DragEventSourceInfo event_info; | 374 DragEventSourceInfo event_info; |
375 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), | 375 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), |
376 event_info); | 376 event_info); |
377 } | 377 } |
378 | 378 |
379 void TestRenderViewHost::TestOnUpdateStateWithFile( | 379 void TestRenderViewHost::TestOnUpdateStateWithFile( |
380 int process_id, | 380 int process_id, |
381 const base::FilePath& file_path) { | 381 const base::FilePath& file_path) { |
382 OnUpdateState(process_id, | 382 OnUpdateState(process_id, |
383 PageState::CreateForTesting(GURL("http://www.google.com"), | 383 PageState::CreateForTesting(GURL("http://www.google.com"), |
(...skipping 30 matching lines...) Expand all Loading... |
414 | 414 |
415 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 415 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
416 return static_cast<TestRenderViewHost*>(active_rvh()); | 416 return static_cast<TestRenderViewHost*>(active_rvh()); |
417 } | 417 } |
418 | 418 |
419 TestWebContents* RenderViewHostImplTestHarness::contents() { | 419 TestWebContents* RenderViewHostImplTestHarness::contents() { |
420 return static_cast<TestWebContents*>(web_contents()); | 420 return static_cast<TestWebContents*>(web_contents()); |
421 } | 421 } |
422 | 422 |
423 } // namespace content | 423 } // namespace content |
OLD | NEW |