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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Fix gn check Created 4 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/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #include "third_party/WebKit/public/web/WebScriptSource.h" 91 #include "third_party/WebKit/public/web/WebScriptSource.h"
92 #include "third_party/WebKit/public/web/WebTestingSupport.h" 92 #include "third_party/WebKit/public/web/WebTestingSupport.h"
93 #include "third_party/WebKit/public/web/WebView.h" 93 #include "third_party/WebKit/public/web/WebView.h"
94 #include "ui/gfx/geometry/rect.h" 94 #include "ui/gfx/geometry/rect.h"
95 #include "ui/gfx/icc_profile.h" 95 #include "ui/gfx/icc_profile.h"
96 96
97 using blink::Platform; 97 using blink::Platform;
98 using blink::WebArrayBufferView; 98 using blink::WebArrayBufferView;
99 using blink::WebContextMenuData; 99 using blink::WebContextMenuData;
100 using blink::WebDevToolsAgent; 100 using blink::WebDevToolsAgent;
101 using blink::WebDeviceMotionData; 101 using device::MotionData;
102 using blink::WebDeviceOrientationData; 102 using device::OrientationData;
103 using blink::WebElement; 103 using blink::WebElement;
104 using blink::WebLocalFrame; 104 using blink::WebLocalFrame;
105 using blink::WebHistoryItem; 105 using blink::WebHistoryItem;
106 using blink::WebFrame; 106 using blink::WebFrame;
107 using blink::WebLocalFrame; 107 using blink::WebLocalFrame;
108 using blink::WebPoint; 108 using blink::WebPoint;
109 using blink::WebRect; 109 using blink::WebRect;
110 using blink::WebScriptSource; 110 using blink::WebScriptSource;
111 using blink::WebSize; 111 using blink::WebSize;
112 using blink::WebString; 112 using blink::WebString;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 test_runner::GamepadController* controller) { 274 test_runner::GamepadController* controller) {
275 std::unique_ptr<MockGamepadProvider> provider( 275 std::unique_ptr<MockGamepadProvider> provider(
276 new MockGamepadProvider(controller)); 276 new MockGamepadProvider(controller));
277 SetMockGamepadProvider(std::move(provider)); 277 SetMockGamepadProvider(std::move(provider));
278 } 278 }
279 279
280 void BlinkTestRunner::SetDeviceLightData(const double data) { 280 void BlinkTestRunner::SetDeviceLightData(const double data) {
281 SetMockDeviceLightData(data); 281 SetMockDeviceLightData(data);
282 } 282 }
283 283
284 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { 284 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) {
285 SetMockDeviceMotionData(data); 285 SetMockDeviceMotionData(data);
286 } 286 }
287 287
288 void BlinkTestRunner::SetDeviceOrientationData( 288 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) {
289 const WebDeviceOrientationData& data) {
290 SetMockDeviceOrientationData(data); 289 SetMockDeviceOrientationData(data);
291 } 290 }
292 291
293 void BlinkTestRunner::PrintMessage(const std::string& message) { 292 void BlinkTestRunner::PrintMessage(const std::string& message) {
294 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
295 } 294 }
296 295
297 void BlinkTestRunner::PostTask(const base::Closure& task) { 296 void BlinkTestRunner::PostTask(const base::Closure& task) {
298 Platform::current() 297 Platform::current()
299 ->currentThread() 298 ->currentThread()
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 void BlinkTestRunner::ReportLeakDetectionResult( 1023 void BlinkTestRunner::ReportLeakDetectionResult(
1025 const LeakDetectionResult& report) { 1024 const LeakDetectionResult& report) {
1026 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1025 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1027 } 1026 }
1028 1027
1029 void BlinkTestRunner::OnDestruct() { 1028 void BlinkTestRunner::OnDestruct() {
1030 delete this; 1029 delete this;
1031 } 1030 }
1032 1031
1033 } // namespace content 1032 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698