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

Side by Side Diff: content/test/layouttest_support.cc

Issue 660883003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/public/test/layouttest_support.h" 5 #include "content/public/test/layouttest_support.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "cc/blink/web_layer_impl.h" 9 #include "cc/blink/web_layer_impl.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 base::Bind(&FetchManifestDoneCallback, 106 base::Bind(&FetchManifestDoneCallback,
107 base::Passed(&autodeleter), 107 base::Passed(&autodeleter),
108 callback)); 108 callback));
109 } 109 }
110 110
111 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) { 111 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) {
112 RenderThreadImpl::current() 112 RenderThreadImpl::current()
113 ->blink_platform_impl() 113 ->blink_platform_impl()
114 ->SetPlatformEventObserverForTesting( 114 ->SetPlatformEventObserverForTesting(
115 blink::WebPlatformEventGamepad, 115 blink::WebPlatformEventGamepad,
116 provider.PassAs<PlatformEventObserverBase>()); 116 provider.Pass());
117 } 117 }
118 118
119 void SetMockDeviceLightData(const double data) { 119 void SetMockDeviceLightData(const double data) {
120 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data); 120 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data);
121 } 121 }
122 122
123 void SetMockDeviceMotionData(const WebDeviceMotionData& data) { 123 void SetMockDeviceMotionData(const WebDeviceMotionData& data) {
124 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data); 124 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data);
125 } 125 }
126 126
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 387 }
388 result.append("===============================================\n"); 388 result.append("===============================================\n");
389 return result; 389 return result;
390 } 390 }
391 391
392 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { 392 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) {
393 return new cc_blink::WebLayerImpl(layer); 393 return new cc_blink::WebLayerImpl(layer);
394 } 394 }
395 395
396 } // namespace content 396 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | content/test/test_render_frame_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698