| 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/DocumentSupplementable.h" |
| 9 #include "core/frame/DeviceSingleWindowEventController.h" | 9 #include "core/frame/DeviceSingleWindowEventController.h" |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace blink { |
| 12 | 12 |
| 13 class DeviceOrientationData; | 13 class DeviceOrientationData; |
| 14 class Event; | 14 class Event; |
| 15 | 15 |
| 16 class DeviceOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin
alized<DeviceOrientationController>, public DeviceSingleWindowEventController, p
ublic DocumentSupplement { | 16 class DeviceOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin
alized<DeviceOrientationController>, public DeviceSingleWindowEventController, p
ublic DocumentSupplement { |
| 17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); | 17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); |
| 18 public: | 18 public: |
| 19 virtual ~DeviceOrientationController(); | 19 virtual ~DeviceOrientationController(); |
| 20 | 20 |
| 21 static const char* supplementName(); | 21 static const char* supplementName(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 // Inherited from DeviceSingleWindowEventController. | 40 // Inherited from DeviceSingleWindowEventController. |
| 41 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; | 41 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; |
| 42 virtual const AtomicString& eventTypeName() const OVERRIDE; | 42 virtual const AtomicString& eventTypeName() const OVERRIDE; |
| 43 virtual bool isNullEvent(Event*) const OVERRIDE; | 43 virtual bool isNullEvent(Event*) const OVERRIDE; |
| 44 | 44 |
| 45 DeviceOrientationData* lastData() const; | 45 DeviceOrientationData* lastData() const; |
| 46 | 46 |
| 47 RefPtrWillBeMember<DeviceOrientationData> m_overrideOrientationData; | 47 RefPtrWillBeMember<DeviceOrientationData> m_overrideOrientationData; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace WebCore | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // DeviceOrientationController_h | 52 #endif // DeviceOrientationController_h |
| OLD | NEW |