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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 void WebKitTestRunner::SetDeviceOrientationData( | 219 void WebKitTestRunner::SetDeviceOrientationData( |
220 const WebDeviceOrientationData& data) { | 220 const WebDeviceOrientationData& data) { |
221 SetMockDeviceOrientationData(data); | 221 SetMockDeviceOrientationData(data); |
222 } | 222 } |
223 | 223 |
224 void WebKitTestRunner::SetScreenOrientation( | 224 void WebKitTestRunner::SetScreenOrientation( |
225 const WebScreenOrientationType& orientation) { | 225 const WebScreenOrientationType& orientation) { |
226 MockScreenOrientationClient* mock_client = | 226 MockScreenOrientationClient* mock_client = |
227 proxy()->GetScreenOrientationClientMock(); | 227 proxy()->GetScreenOrientationClientMock(); |
228 mock_client->UpdateDeviceOrientation(render_view()->GetWebView()->mainFrame(), | 228 mock_client->UpdateDeviceOrientation( |
229 orientation); | 229 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); |
230 } | 230 } |
231 | 231 |
232 void WebKitTestRunner::ResetScreenOrientation() { | 232 void WebKitTestRunner::ResetScreenOrientation() { |
233 MockScreenOrientationClient* mock_client = | 233 MockScreenOrientationClient* mock_client = |
234 proxy()->GetScreenOrientationClientMock(); | 234 proxy()->GetScreenOrientationClientMock(); |
235 mock_client->ResetData(); | 235 mock_client->ResetData(); |
236 } | 236 } |
237 | 237 |
238 void WebKitTestRunner::DidChangeBatteryStatus( | 238 void WebKitTestRunner::DidChangeBatteryStatus( |
239 const blink::WebBatteryStatus& status) { | 239 const blink::WebBatteryStatus& status) { |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 747 |
748 leak_detector_->TryLeakDetection(main_frame); | 748 leak_detector_->TryLeakDetection(main_frame); |
749 } | 749 } |
750 | 750 |
751 void WebKitTestRunner::ReportLeakDetectionResult( | 751 void WebKitTestRunner::ReportLeakDetectionResult( |
752 const LeakDetectionResult& report) { | 752 const LeakDetectionResult& report) { |
753 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 753 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
754 } | 754 } |
755 | 755 |
756 } // namespace content | 756 } // namespace content |
OLD | NEW |