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

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

Issue 152893002: [DeviceLight API] Content Side Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in Java file, stop() Created 6 years, 8 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const blink::WebGamepad& gamepad) { 241 const blink::WebGamepad& gamepad) {
242 MockGamepadConnected(index, gamepad); 242 MockGamepadConnected(index, gamepad);
243 } 243 }
244 244
245 void WebKitTestRunner::didDisconnectGamepad( 245 void WebKitTestRunner::didDisconnectGamepad(
246 int index, 246 int index,
247 const blink::WebGamepad& gamepad) { 247 const blink::WebGamepad& gamepad) {
248 MockGamepadDisconnected(index, gamepad); 248 MockGamepadDisconnected(index, gamepad);
249 } 249 }
250 250
251 void WebKitTestRunner::setDeviceLightData(const double& data) {
252 SetMockDeviceLightData(data);
253 }
254
251 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { 255 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) {
252 SetMockDeviceMotionData(data); 256 SetMockDeviceMotionData(data);
253 } 257 }
254 258
255 void WebKitTestRunner::setDeviceOrientationData( 259 void WebKitTestRunner::setDeviceOrientationData(
256 const WebDeviceOrientationData& data) { 260 const WebDeviceOrientationData& data) {
257 SetMockDeviceOrientationData(data); 261 SetMockDeviceOrientationData(data);
258 } 262 }
259 263
260 void WebKitTestRunner::setScreenOrientation( 264 void WebKitTestRunner::setScreenOrientation(
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 WebFrame* main_frame = render_view()->GetWebView()->mainFrame(); 742 WebFrame* main_frame = render_view()->GetWebView()->mainFrame();
739 DCHECK_EQ(GURL(kAboutBlankURL), GURL(main_frame->document().url())); 743 DCHECK_EQ(GURL(kAboutBlankURL), GURL(main_frame->document().url()));
740 DCHECK(!main_frame->isLoading()); 744 DCHECK(!main_frame->isLoading());
741 745
742 LeakDetectionResult result = leak_detector_->TryLeakDetection( 746 LeakDetectionResult result = leak_detector_->TryLeakDetection(
743 render_view()->GetWebView()->mainFrame()); 747 render_view()->GetWebView()->mainFrame());
744 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), result)); 748 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), result));
745 } 749 }
746 750
747 } // namespace content 751 } // 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