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

Side by Side Diff: content/shell/renderer/webkit_test_runner.cc

Issue 336823002: [DeviceLight] Add Layout support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unrelated changes Created 6 years, 5 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
« no previous file with comments | « content/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('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 "content/shell/renderer/webkit_test_runner.h" 5 #include "content/shell/renderer/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void WebKitTestRunner::setEditCommand(const std::string& name, 200 void WebKitTestRunner::setEditCommand(const std::string& name,
201 const std::string& value) { 201 const std::string& value) {
202 render_view()->SetEditCommandForNextKeyEvent(name, value); 202 render_view()->SetEditCommandForNextKeyEvent(name, value);
203 } 203 }
204 204
205 void WebKitTestRunner::setGamepadProvider( 205 void WebKitTestRunner::setGamepadProvider(
206 RendererGamepadProvider* provider) { 206 RendererGamepadProvider* provider) {
207 SetMockGamepadProvider(provider); 207 SetMockGamepadProvider(provider);
208 } 208 }
209 209
210 void WebKitTestRunner::setDeviceLightData(const double data) {
211 SetMockDeviceLightData(data);
212 }
213
210 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { 214 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) {
211 SetMockDeviceMotionData(data); 215 SetMockDeviceMotionData(data);
212 } 216 }
213 217
214 void WebKitTestRunner::setDeviceOrientationData( 218 void WebKitTestRunner::setDeviceOrientationData(
215 const WebDeviceOrientationData& data) { 219 const WebDeviceOrientationData& data) {
216 SetMockDeviceOrientationData(data); 220 SetMockDeviceOrientationData(data);
217 } 221 }
218 222
219 void WebKitTestRunner::setScreenOrientation( 223 void WebKitTestRunner::setScreenOrientation(
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 722
719 leak_detector_->TryLeakDetection(main_frame); 723 leak_detector_->TryLeakDetection(main_frame);
720 } 724 }
721 725
722 void WebKitTestRunner::ReportLeakDetectionResult( 726 void WebKitTestRunner::ReportLeakDetectionResult(
723 const LeakDetectionResult& report) { 727 const LeakDetectionResult& report) {
724 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 728 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
725 } 729 }
726 730
727 } // namespace content 731 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698