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

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

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 render_view()->SetEditCommandForNextKeyEvent(name, value); 271 render_view()->SetEditCommandForNextKeyEvent(name, value);
272 } 272 }
273 273
274 void BlinkTestRunner::SetGamepadProvider( 274 void BlinkTestRunner::SetGamepadProvider(
275 test_runner::GamepadController* controller) { 275 test_runner::GamepadController* controller) {
276 std::unique_ptr<MockGamepadProvider> provider( 276 std::unique_ptr<MockGamepadProvider> provider(
277 new MockGamepadProvider(controller)); 277 new MockGamepadProvider(controller));
278 SetMockGamepadProvider(std::move(provider)); 278 SetMockGamepadProvider(std::move(provider));
279 } 279 }
280 280
281 void BlinkTestRunner::SetDeviceLightData(const double data) {
282 SetMockDeviceLightData(data);
283 }
284
285 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { 281 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) {
286 SetMockDeviceMotionData(data); 282 SetMockDeviceMotionData(data);
287 } 283 }
288 284
289 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { 285 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) {
290 SetMockDeviceOrientationData(data); 286 SetMockDeviceOrientationData(data);
291 } 287 }
292 288
293 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { 289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) {
294 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); 290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message));
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 void BlinkTestRunner::ReportLeakDetectionResult( 1053 void BlinkTestRunner::ReportLeakDetectionResult(
1058 const LeakDetectionResult& report) { 1054 const LeakDetectionResult& report) {
1059 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1055 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1060 } 1056 }
1061 1057
1062 void BlinkTestRunner::OnDestruct() { 1058 void BlinkTestRunner::OnDestruct() {
1063 delete this; 1059 delete this;
1064 } 1060 }
1065 1061
1066 } // namespace content 1062 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | content/shell/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698