| 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/layout_test/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <clocale> | 10 #include <clocale> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #include "third_party/WebKit/public/web/WebScriptSource.h" | 93 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 94 #include "third_party/WebKit/public/web/WebTestingSupport.h" | 94 #include "third_party/WebKit/public/web/WebTestingSupport.h" |
| 95 #include "third_party/WebKit/public/web/WebView.h" | 95 #include "third_party/WebKit/public/web/WebView.h" |
| 96 #include "ui/gfx/geometry/rect.h" | 96 #include "ui/gfx/geometry/rect.h" |
| 97 #include "ui/gfx/icc_profile.h" | 97 #include "ui/gfx/icc_profile.h" |
| 98 | 98 |
| 99 using blink::Platform; | 99 using blink::Platform; |
| 100 using blink::WebArrayBufferView; | 100 using blink::WebArrayBufferView; |
| 101 using blink::WebContextMenuData; | 101 using blink::WebContextMenuData; |
| 102 using blink::WebDevToolsAgent; | 102 using blink::WebDevToolsAgent; |
| 103 using device::MotionData; | |
| 104 using device::OrientationData; | 103 using device::OrientationData; |
| 105 using blink::WebElement; | 104 using blink::WebElement; |
| 106 using blink::WebLocalFrame; | 105 using blink::WebLocalFrame; |
| 107 using blink::WebHistoryItem; | 106 using blink::WebHistoryItem; |
| 108 using blink::WebFrame; | 107 using blink::WebFrame; |
| 109 using blink::WebLocalFrame; | 108 using blink::WebLocalFrame; |
| 110 using blink::WebPoint; | 109 using blink::WebPoint; |
| 111 using blink::WebRect; | 110 using blink::WebRect; |
| 112 using blink::WebScriptSource; | 111 using blink::WebScriptSource; |
| 113 using blink::WebSize; | 112 using blink::WebSize; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 render_view()->SetEditCommandForNextKeyEvent(name, value); | 270 render_view()->SetEditCommandForNextKeyEvent(name, value); |
| 272 } | 271 } |
| 273 | 272 |
| 274 void BlinkTestRunner::SetGamepadProvider( | 273 void BlinkTestRunner::SetGamepadProvider( |
| 275 test_runner::GamepadController* controller) { | 274 test_runner::GamepadController* controller) { |
| 276 std::unique_ptr<MockGamepadProvider> provider( | 275 std::unique_ptr<MockGamepadProvider> provider( |
| 277 new MockGamepadProvider(controller)); | 276 new MockGamepadProvider(controller)); |
| 278 SetMockGamepadProvider(std::move(provider)); | 277 SetMockGamepadProvider(std::move(provider)); |
| 279 } | 278 } |
| 280 | 279 |
| 281 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { | 280 void BlinkTestRunner::SetDeviceMotionData( |
| 281 const blink::WebDeviceMotionData& data) { |
| 282 SetMockDeviceMotionData(data); | 282 SetMockDeviceMotionData(data); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { | 285 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { |
| 286 SetMockDeviceOrientationData(data); | 286 SetMockDeviceOrientationData(data); |
| 287 } | 287 } |
| 288 | 288 |
| 289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { | 289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { |
| 290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); | 290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); |
| 291 } | 291 } |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 void BlinkTestRunner::ReportLeakDetectionResult( | 1059 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1060 const LeakDetectionResult& report) { | 1060 const LeakDetectionResult& report) { |
| 1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 void BlinkTestRunner::OnDestruct() { | 1064 void BlinkTestRunner::OnDestruct() { |
| 1065 delete this; | 1065 delete this; |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 } // namespace content | 1068 } // namespace content |
| OLD | NEW |