| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |