| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 SetMockDeviceMotionData(data); | 247 SetMockDeviceMotionData(data); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void WebKitTestRunner::setDeviceOrientationData( | 250 void WebKitTestRunner::setDeviceOrientationData( |
| 251 const WebDeviceOrientationData& data) { | 251 const WebDeviceOrientationData& data) { |
| 252 SetMockDeviceOrientationData(data); | 252 SetMockDeviceOrientationData(data); |
| 253 } | 253 } |
| 254 | 254 |
| 255 void WebKitTestRunner::setScreenOrientation( | 255 void WebKitTestRunner::setScreenOrientation( |
| 256 const WebScreenOrientationType& orientation) { | 256 const WebScreenOrientationType& orientation) { |
| 257 SetMockScreenOrientation(orientation); | 257 SetMockScreenOrientation(render_view(), orientation); |
| 258 } | 258 } |
| 259 | 259 |
| 260 void WebKitTestRunner::printMessage(const std::string& message) { | 260 void WebKitTestRunner::printMessage(const std::string& message) { |
| 261 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 261 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
| 262 } | 262 } |
| 263 | 263 |
| 264 void WebKitTestRunner::postTask(WebTask* task) { | 264 void WebKitTestRunner::postTask(WebTask* task) { |
| 265 Platform::current()->callOnMainThread(InvokeTaskHelper, task); | 265 Platform::current()->callOnMainThread(InvokeTaskHelper, task); |
| 266 } | 266 } |
| 267 | 267 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 | 746 |
| 747 leak_detector_->TryLeakDetection(main_frame); | 747 leak_detector_->TryLeakDetection(main_frame); |
| 748 } | 748 } |
| 749 | 749 |
| 750 void WebKitTestRunner::ReportLeakDetectionResult( | 750 void WebKitTestRunner::ReportLeakDetectionResult( |
| 751 const LeakDetectionResult& report) { | 751 const LeakDetectionResult& report) { |
| 752 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 752 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 753 } | 753 } |
| 754 | 754 |
| 755 } // namespace content | 755 } // namespace content |
| OLD | NEW |