| 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 #ifndef DeviceOrientationController_h | 5 #ifndef DeviceOrientationController_h |
| 6 #define DeviceOrientationController_h | 6 #define DeviceOrientationController_h |
| 7 | 7 |
| 8 #include "core/dom/DocumentSupplementable.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/DeviceSingleWindowEventController.h" | 9 #include "core/frame/DeviceSingleWindowEventController.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DeviceOrientationData; | 14 class DeviceOrientationData; |
| 15 class Event; | 15 class Event; |
| 16 | 16 |
| 17 class MODULES_EXPORT DeviceOrientationController final : public DeviceSingleWind
owEventController, public DocumentSupplement { | 17 class MODULES_EXPORT DeviceOrientationController final : public DeviceSingleWind
owEventController, public WillBeHeapSupplement<Document> { |
| 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); | 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); |
| 19 public: | 19 public: |
| 20 virtual ~DeviceOrientationController(); | 20 virtual ~DeviceOrientationController(); |
| 21 | 21 |
| 22 static const char* supplementName(); | 22 static const char* supplementName(); |
| 23 static DeviceOrientationController& from(Document&); | 23 static DeviceOrientationController& from(Document&); |
| 24 | 24 |
| 25 // Inherited from DeviceSingleWindowEventController. | 25 // Inherited from DeviceSingleWindowEventController. |
| 26 void didUpdateData() override; | 26 void didUpdateData() override; |
| 27 void didAddEventListener(LocalDOMWindow*, const AtomicString& eventType) ove
rride; | 27 void didAddEventListener(LocalDOMWindow*, const AtomicString& eventType) ove
rride; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 virtual bool isNullEvent(Event*) const override; | 45 virtual bool isNullEvent(Event*) const override; |
| 46 | 46 |
| 47 DeviceOrientationData* lastData() const; | 47 DeviceOrientationData* lastData() const; |
| 48 | 48 |
| 49 PersistentWillBeMember<DeviceOrientationData> m_overrideOrientationData; | 49 PersistentWillBeMember<DeviceOrientationData> m_overrideOrientationData; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // DeviceOrientationController_h | 54 #endif // DeviceOrientationController_h |
| OLD | NEW |