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

Side by Side Diff: webkit/support/test_webkit_platform_support.cc

Issue 12377029: Get rid of WebLayerTreeViewClient references in WebLayerTreeViewImplForTesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « webkit/compositor_bindings/web_layer_unittest.cc ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/scoped_handle.h" 10 #include "base/memory/scoped_handle.h"
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 598
599 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { 599 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() {
600 return webkit_support::GetWebKitRootDir(); 600 return webkit_support::GetWebKitRootDir();
601 } 601 }
602 602
603 603
604 WebKit::WebLayerTreeView* 604 WebKit::WebLayerTreeView*
605 TestWebKitPlatformSupport::createLayerTreeViewForTesting() { 605 TestWebKitPlatformSupport::createLayerTreeViewForTesting() {
606 scoped_ptr<WebLayerTreeViewImplForTesting> view( 606 scoped_ptr<WebLayerTreeViewImplForTesting> view(
607 new WebLayerTreeViewImplForTesting( 607 new WebLayerTreeViewImplForTesting(
608 WebLayerTreeViewImplForTesting::FAKE_CONTEXT, 608 WebLayerTreeViewImplForTesting::FAKE_CONTEXT, NULL));
609 static_cast<WebKit::WebLayerTreeViewClient*>(NULL)));
610 609
611 if (!view->initialize(scoped_ptr<cc::Thread>())) 610 if (!view->initialize(scoped_ptr<cc::Thread>()))
612 return NULL; 611 return NULL;
613 return view.release(); 612 return view.release();
614 } 613 }
615 614
616 WebKit::WebLayerTreeView* 615 WebKit::WebLayerTreeView*
617 TestWebKitPlatformSupport::createLayerTreeViewForTesting( 616 TestWebKitPlatformSupport::createLayerTreeViewForTesting(
618 TestViewType type) { 617 TestViewType type) {
619 DCHECK_EQ(TestViewTypeUnitTest, type); 618 DCHECK_EQ(TestViewTypeUnitTest, type);
620 return createLayerTreeViewForTesting(); 619 return createLayerTreeViewForTesting();
621 } 620 }
622 621
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_unittest.cc ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698