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

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

Issue 2885203004: Refactor content/renderer/device_sensors to use device/generic_sensor instead of device/sensors (Closed)
Patch Set: updated content/renderer/BUILD.gn Created 3 years, 7 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #include "third_party/WebKit/public/web/WebScriptSource.h" 93 #include "third_party/WebKit/public/web/WebScriptSource.h"
94 #include "third_party/WebKit/public/web/WebTestingSupport.h" 94 #include "third_party/WebKit/public/web/WebTestingSupport.h"
95 #include "third_party/WebKit/public/web/WebView.h" 95 #include "third_party/WebKit/public/web/WebView.h"
96 #include "ui/gfx/geometry/rect.h" 96 #include "ui/gfx/geometry/rect.h"
97 #include "ui/gfx/icc_profile.h" 97 #include "ui/gfx/icc_profile.h"
98 98
99 using blink::Platform; 99 using blink::Platform;
100 using blink::WebArrayBufferView; 100 using blink::WebArrayBufferView;
101 using blink::WebContextMenuData; 101 using blink::WebContextMenuData;
102 using blink::WebDevToolsAgent; 102 using blink::WebDevToolsAgent;
103 using device::MotionData;
104 using device::OrientationData;
105 using blink::WebElement; 103 using blink::WebElement;
106 using blink::WebLocalFrame; 104 using blink::WebLocalFrame;
107 using blink::WebHistoryItem; 105 using blink::WebHistoryItem;
108 using blink::WebFrame; 106 using blink::WebFrame;
109 using blink::WebLocalFrame; 107 using blink::WebLocalFrame;
110 using blink::WebPoint; 108 using blink::WebPoint;
111 using blink::WebRect; 109 using blink::WebRect;
112 using blink::WebScriptSource; 110 using blink::WebScriptSource;
113 using blink::WebSize; 111 using blink::WebSize;
114 using blink::WebString; 112 using blink::WebString;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 render_view()->SetEditCommandForNextKeyEvent(name, value); 269 render_view()->SetEditCommandForNextKeyEvent(name, value);
272 } 270 }
273 271
274 void BlinkTestRunner::SetGamepadProvider( 272 void BlinkTestRunner::SetGamepadProvider(
275 test_runner::GamepadController* controller) { 273 test_runner::GamepadController* controller) {
276 std::unique_ptr<MockGamepadProvider> provider( 274 std::unique_ptr<MockGamepadProvider> provider(
277 new MockGamepadProvider(controller)); 275 new MockGamepadProvider(controller));
278 SetMockGamepadProvider(std::move(provider)); 276 SetMockGamepadProvider(std::move(provider));
279 } 277 }
280 278
281 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { 279 void BlinkTestRunner::SetDeviceMotionData(
280 const blink::WebDeviceMotionData& data) {
282 SetMockDeviceMotionData(data); 281 SetMockDeviceMotionData(data);
283 } 282 }
284 283
285 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { 284 void BlinkTestRunner::SetDeviceOrientationData(
285 const blink::WebDeviceOrientationData& data) {
286 SetMockDeviceOrientationData(data); 286 SetMockDeviceOrientationData(data);
287 } 287 }
288 288
289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { 289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) {
290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); 290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message));
291 } 291 }
292 292
293 void BlinkTestRunner::PrintMessage(const std::string& message) { 293 void BlinkTestRunner::PrintMessage(const std::string& message) {
294 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 294 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
295 } 295 }
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 void BlinkTestRunner::ReportLeakDetectionResult( 1059 void BlinkTestRunner::ReportLeakDetectionResult(
1060 const LeakDetectionResult& report) { 1060 const LeakDetectionResult& report) {
1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1062 } 1062 }
1063 1063
1064 void BlinkTestRunner::OnDestruct() { 1064 void BlinkTestRunner::OnDestruct() {
1065 delete this; 1065 delete this;
1066 } 1066 }
1067 1067
1068 } // namespace content 1068 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698