| 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 "components/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 "components/test_runner/mock_credential_manager_client.h" | 10 #include "components/test_runner/mock_credential_manager_client.h" |
| 11 #include "components/test_runner/mock_web_speech_recognizer.h" | 11 #include "components/test_runner/mock_web_speech_recognizer.h" |
| 12 #include "components/test_runner/test_interfaces.h" | 12 #include "components/test_runner/test_interfaces.h" |
| 13 #include "components/test_runner/test_preferences.h" | 13 #include "components/test_runner/test_preferences.h" |
| 14 #include "components/test_runner/web_content_settings.h" | 14 #include "components/test_runner/web_content_settings.h" |
| 15 #include "components/test_runner/web_test_delegate.h" | 15 #include "components/test_runner/web_test_delegate.h" |
| 16 #include "components/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/WebPasswordCredential.h" | 25 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" |
| 26 #include "third_party/WebKit/public/platform/WebPoint.h" | 26 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 27 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" | |
| 28 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 27 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 29 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" | 28 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" |
| 30 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" | 29 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" |
| 30 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRegistration.h" |
| 31 #include "third_party/WebKit/public/web/WebArrayBuffer.h" | 31 #include "third_party/WebKit/public/web/WebArrayBuffer.h" |
| 32 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" | 32 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" |
| 33 #include "third_party/WebKit/public/web/WebBindings.h" | 33 #include "third_party/WebKit/public/web/WebBindings.h" |
| 34 #include "third_party/WebKit/public/web/WebDataSource.h" | 34 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 35 #include "third_party/WebKit/public/web/WebDocument.h" | 35 #include "third_party/WebKit/public/web/WebDocument.h" |
| 36 #include "third_party/WebKit/public/web/WebFindOptions.h" | 36 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 37 #include "third_party/WebKit/public/web/WebFrame.h" | 37 #include "third_party/WebKit/public/web/WebFrame.h" |
| 38 #include "third_party/WebKit/public/web/WebGraphicsContext.h" | 38 #include "third_party/WebKit/public/web/WebGraphicsContext.h" |
| 39 #include "third_party/WebKit/public/web/WebInputElement.h" | 39 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 40 #include "third_party/WebKit/public/web/WebKit.h" | 40 #include "third_party/WebKit/public/web/WebKit.h" |
| (...skipping 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3068 } | 3068 } |
| 3069 | 3069 |
| 3070 void TestRunner::DidLosePointerLockInternal() { | 3070 void TestRunner::DidLosePointerLockInternal() { |
| 3071 bool was_locked = pointer_locked_; | 3071 bool was_locked = pointer_locked_; |
| 3072 pointer_locked_ = false; | 3072 pointer_locked_ = false; |
| 3073 if (was_locked) | 3073 if (was_locked) |
| 3074 web_view_->didLosePointerLock(); | 3074 web_view_->didLosePointerLock(); |
| 3075 } | 3075 } |
| 3076 | 3076 |
| 3077 } // namespace test_runner | 3077 } // namespace test_runner |
| OLD | NEW |