Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/browser/dom_storage/dom_storage_context_impl.h" 7 #include "content/browser/dom_storage/dom_storage_context_impl.h"
8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 8 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
9 #include "content/browser/renderer_host/test_backing_store.h" 9 #include "content/browser/renderer_host/test_backing_store.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 void TestRenderViewHost::SimulateWasHidden() { 377 void TestRenderViewHost::SimulateWasHidden() {
378 WasHidden(); 378 WasHidden();
379 } 379 }
380 380
381 void TestRenderViewHost::SimulateWasShown() { 381 void TestRenderViewHost::SimulateWasShown() {
382 WasShown(); 382 WasShown();
383 } 383 }
384 384
385 void TestRenderViewHost::TestOnStartDragging( 385 void TestRenderViewHost::TestOnStartDragging(
386 const WebDropData& drop_data) { 386 const DropData& drop_data) {
387 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; 387 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery;
388 DragEventSourceInfo event_info; 388 DragEventSourceInfo event_info;
389 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), 389 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(),
390 event_info); 390 event_info);
391 } 391 }
392 392
393 void TestRenderViewHost::TestOnUpdateStateWithFile( 393 void TestRenderViewHost::TestOnUpdateStateWithFile(
394 int process_id, 394 int process_id,
395 const base::FilePath& file_path) { 395 const base::FilePath& file_path) {
396 OnUpdateState(process_id, 396 OnUpdateState(process_id,
(...skipping 27 matching lines...) Expand all
424 424
425 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 425 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
426 return static_cast<TestRenderViewHost*>(active_rvh()); 426 return static_cast<TestRenderViewHost*>(active_rvh());
427 } 427 }
428 428
429 TestWebContents* RenderViewHostImplTestHarness::contents() { 429 TestWebContents* RenderViewHostImplTestHarness::contents() {
430 return static_cast<TestWebContents*>(web_contents()); 430 return static_cast<TestWebContents*>(web_contents());
431 } 431 }
432 432
433 } // namespace content 433 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/web_contents/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698