| 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 "content/shell/renderer/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/public/test/layouttest_support.h" | 10 #include "content/public/test/layouttest_support.h" |
| 11 #include "content/shell/common/test_runner/test_preferences.h" | 11 #include "content/shell/common/test_runner/test_preferences.h" |
| 12 #include "content/shell/renderer/binding_helpers.h" | 12 #include "content/shell/renderer/binding_helpers.h" |
| 13 #include "content/shell/renderer/test_runner/mock_credential_manager_client.h" | 13 #include "content/shell/renderer/test_runner/mock_credential_manager_client.h" |
| 14 #include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h" | 14 #include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h" |
| 15 #include "content/shell/renderer/test_runner/test_interfaces.h" | 15 #include "content/shell/renderer/test_runner/test_interfaces.h" |
| 16 #include "content/shell/renderer/test_runner/web_content_settings.h" | 16 #include "content/shell/renderer/test_runner/web_content_settings.h" |
| 17 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 17 #include "content/shell/renderer/test_runner/web_test_delegate.h" |
| 18 #include "content/shell/renderer/test_runner/web_test_proxy.h" | 18 #include "content/shell/renderer/test_runner/web_test_proxy.h" |
| 19 #include "gin/arguments.h" | 19 #include "gin/arguments.h" |
| 20 #include "gin/array_buffer.h" | 20 #include "gin/array_buffer.h" |
| 21 #include "gin/handle.h" | 21 #include "gin/handle.h" |
| 22 #include "gin/object_template_builder.h" | 22 #include "gin/object_template_builder.h" |
| 23 #include "gin/wrappable.h" | 23 #include "gin/wrappable.h" |
| 24 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" | 24 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" |
| 25 #include "third_party/WebKit/public/platform/WebCanvas.h" | 25 #include "third_party/WebKit/public/platform/WebCanvas.h" |
| 26 #include "third_party/WebKit/public/platform/WebData.h" | 26 #include "third_party/WebKit/public/platform/WebData.h" |
| 27 #include "third_party/WebKit/public/platform/WebDeviceMotionData.h" | |
| 28 #include "third_party/WebKit/public/platform/WebDeviceOrientationData.h" | |
| 29 #include "third_party/WebKit/public/platform/WebLocalCredential.h" | 27 #include "third_party/WebKit/public/platform/WebLocalCredential.h" |
| 30 #include "third_party/WebKit/public/platform/WebPoint.h" | 28 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 31 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" | 29 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" |
| 32 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 30 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 31 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" |
| 32 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" |
| 33 #include "third_party/WebKit/public/web/WebArrayBuffer.h" | 33 #include "third_party/WebKit/public/web/WebArrayBuffer.h" |
| 34 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" | 34 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" |
| 35 #include "third_party/WebKit/public/web/WebBindings.h" | 35 #include "third_party/WebKit/public/web/WebBindings.h" |
| 36 #include "third_party/WebKit/public/web/WebDataSource.h" | 36 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 37 #include "third_party/WebKit/public/web/WebDocument.h" | 37 #include "third_party/WebKit/public/web/WebDocument.h" |
| 38 #include "third_party/WebKit/public/web/WebFindOptions.h" | 38 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 39 #include "third_party/WebKit/public/web/WebFrame.h" | 39 #include "third_party/WebKit/public/web/WebFrame.h" |
| 40 #include "third_party/WebKit/public/web/WebGraphicsContext.h" | 40 #include "third_party/WebKit/public/web/WebGraphicsContext.h" |
| 41 #include "third_party/WebKit/public/web/WebInputElement.h" | 41 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 42 #include "third_party/WebKit/public/web/WebKit.h" | 42 #include "third_party/WebKit/public/web/WebKit.h" |
| (...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3041 } | 3041 } |
| 3042 | 3042 |
| 3043 void TestRunner::DidLosePointerLockInternal() { | 3043 void TestRunner::DidLosePointerLockInternal() { |
| 3044 bool was_locked = pointer_locked_; | 3044 bool was_locked = pointer_locked_; |
| 3045 pointer_locked_ = false; | 3045 pointer_locked_ = false; |
| 3046 if (was_locked) | 3046 if (was_locked) |
| 3047 web_view_->didLosePointerLock(); | 3047 web_view_->didLosePointerLock(); |
| 3048 } | 3048 } |
| 3049 | 3049 |
| 3050 } // namespace content | 3050 } // namespace content |
| OLD | NEW |