| 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 "modules/device_orientation/DeviceOrientationController.h" | 5 #include "modules/device_orientation/DeviceOrientationController.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/Deprecation.h" | 8 #include "core/frame/Deprecation.h" |
| 9 #include "core/frame/HostsUsingFeatures.h" | 9 #include "core/frame/HostsUsingFeatures.h" |
| 10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
| 11 #include "modules/EventModules.h" | 11 #include "modules/EventModules.h" |
| 12 #include "modules/device_orientation/DeviceOrientationData.h" | 12 #include "modules/device_orientation/DeviceOrientationData.h" |
| 13 #include "modules/device_orientation/DeviceOrientationDispatcher.h" | 13 #include "modules/device_orientation/DeviceOrientationDispatcher.h" |
| 14 #include "modules/device_orientation/DeviceOrientationEvent.h" | 14 #include "modules/device_orientation/DeviceOrientationEvent.h" |
| 15 #include "platform/weborigin/SecurityOrigin.h" | 15 #include "platform/weborigin/SecurityOrigin.h" |
| 16 #include "platform/wtf/Assertions.h" |
| 16 #include "public/platform/Platform.h" | 17 #include "public/platform/Platform.h" |
| 17 #include "wtf/Assertions.h" | |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 DeviceOrientationController::DeviceOrientationController(Document& document) | 21 DeviceOrientationController::DeviceOrientationController(Document& document) |
| 22 : DeviceSingleWindowEventController(document), | 22 : DeviceSingleWindowEventController(document), |
| 23 Supplement<Document>(document) {} | 23 Supplement<Document>(document) {} |
| 24 | 24 |
| 25 DeviceOrientationController::~DeviceOrientationController() {} | 25 DeviceOrientationController::~DeviceOrientationController() {} |
| 26 | 26 |
| 27 void DeviceOrientationController::DidUpdateData() { | 27 void DeviceOrientationController::DidUpdateData() { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return DeviceOrientationDispatcher::Instance(false); | 136 return DeviceOrientationDispatcher::Instance(false); |
| 137 } | 137 } |
| 138 | 138 |
| 139 DEFINE_TRACE(DeviceOrientationController) { | 139 DEFINE_TRACE(DeviceOrientationController) { |
| 140 visitor->Trace(override_orientation_data_); | 140 visitor->Trace(override_orientation_data_); |
| 141 DeviceSingleWindowEventController::Trace(visitor); | 141 DeviceSingleWindowEventController::Trace(visitor); |
| 142 Supplement<Document>::Trace(visitor); | 142 Supplement<Document>::Trace(visitor); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| OLD | NEW |