OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/test_runner/test_runner.h" | 5 #include "components/test_runner/test_runner.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "content/shell/common/test_runner/test_preferences.h" | 10 #include "components/test_runner/mock_credential_manager_client.h" |
11 #include "content/shell/renderer/test_runner/mock_credential_manager_client.h" | 11 #include "components/test_runner/mock_web_speech_recognizer.h" |
12 #include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h" | 12 #include "components/test_runner/test_interfaces.h" |
13 #include "content/shell/renderer/test_runner/test_interfaces.h" | 13 #include "components/test_runner/test_preferences.h" |
14 #include "content/shell/renderer/test_runner/web_content_settings.h" | 14 #include "components/test_runner/web_content_settings.h" |
15 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 15 #include "components/test_runner/web_test_delegate.h" |
16 #include "content/shell/renderer/test_runner/web_test_proxy.h" | 16 #include "components/test_runner/web_test_proxy.h" |
17 #include "gin/arguments.h" | 17 #include "gin/arguments.h" |
18 #include "gin/array_buffer.h" | 18 #include "gin/array_buffer.h" |
19 #include "gin/handle.h" | 19 #include "gin/handle.h" |
20 #include "gin/object_template_builder.h" | 20 #include "gin/object_template_builder.h" |
21 #include "gin/wrappable.h" | 21 #include "gin/wrappable.h" |
22 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" | 22 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" |
23 #include "third_party/WebKit/public/platform/WebCanvas.h" | 23 #include "third_party/WebKit/public/platform/WebCanvas.h" |
24 #include "third_party/WebKit/public/platform/WebData.h" | 24 #include "third_party/WebKit/public/platform/WebData.h" |
25 #include "third_party/WebKit/public/platform/WebLocalCredential.h" | 25 #include "third_party/WebKit/public/platform/WebLocalCredential.h" |
26 #include "third_party/WebKit/public/platform/WebPoint.h" | 26 #include "third_party/WebKit/public/platform/WebPoint.h" |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 args->GetNext(&gamma); | 963 args->GetNext(&gamma); |
964 args->GetNext(&has_absolute); | 964 args->GetNext(&has_absolute); |
965 args->GetNext(&absolute); | 965 args->GetNext(&absolute); |
966 | 966 |
967 runner_->SetMockDeviceOrientation(has_alpha, alpha, | 967 runner_->SetMockDeviceOrientation(has_alpha, alpha, |
968 has_beta, beta, | 968 has_beta, beta, |
969 has_gamma, gamma, | 969 has_gamma, gamma, |
970 has_absolute, absolute); | 970 has_absolute, absolute); |
971 } | 971 } |
972 | 972 |
973 void TestRunnerBindings::SetMockScreenOrientation(const std::string& orientation
) { | 973 void TestRunnerBindings::SetMockScreenOrientation( |
| 974 const std::string& orientation) { |
974 if (!runner_) | 975 if (!runner_) |
975 return; | 976 return; |
976 | 977 |
977 runner_->SetMockScreenOrientation(orientation); | 978 runner_->SetMockScreenOrientation(orientation); |
978 } | 979 } |
979 | 980 |
980 void TestRunnerBindings::DidChangeBatteryStatus(bool charging, | 981 void TestRunnerBindings::DidChangeBatteryStatus(bool charging, |
981 double chargingTime, | 982 double chargingTime, |
982 double dischargingTime, | 983 double dischargingTime, |
983 double level) { | 984 double level) { |
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 } | 3088 } |
3088 | 3089 |
3089 void TestRunner::DidLosePointerLockInternal() { | 3090 void TestRunner::DidLosePointerLockInternal() { |
3090 bool was_locked = pointer_locked_; | 3091 bool was_locked = pointer_locked_; |
3091 pointer_locked_ = false; | 3092 pointer_locked_ = false; |
3092 if (was_locked) | 3093 if (was_locked) |
3093 web_view_->didLosePointerLock(); | 3094 web_view_->didLosePointerLock(); |
3094 } | 3095 } |
3095 | 3096 |
3096 } // namespace content | 3097 } // namespace content |
OLD | NEW |