OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Apple Inc. All rights reserved. | 2 * Copyright 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above copyright | 10 * * Redistributions in binary form must reproduce the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef DeviceOrientationController_h | 27 #ifndef DeviceOrientationController_h |
28 #define DeviceOrientationController_h | 28 #define DeviceOrientationController_h |
29 | 29 |
30 #include "core/dom/DocumentSupplementable.h" | 30 #include "core/dom/DocumentSupplementable.h" |
31 #include "core/events/Event.h" | |
32 #include "core/frame/DOMWindowLifecycleObserver.h" | 31 #include "core/frame/DOMWindowLifecycleObserver.h" |
33 #include "core/frame/DeviceSensorEventController.h" | 32 #include "core/frame/DeviceSensorEventController.h" |
| 33 #include "modules/EventModules.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class DeviceOrientationData; | 37 class DeviceOrientationData; |
38 | 38 |
39 class DeviceOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin
alized<DeviceOrientationController>, public DeviceSensorEventController, public
DocumentSupplement, public DOMWindowLifecycleObserver { | 39 class DeviceOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin
alized<DeviceOrientationController>, public DeviceSensorEventController, public
DocumentSupplement, public DOMWindowLifecycleObserver { |
40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); | 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); |
41 public: | 41 public: |
42 virtual ~DeviceOrientationController(); | 42 virtual ~DeviceOrientationController(); |
43 | 43 |
(...skipping 22 matching lines...) Expand all Loading... |
66 virtual bool isNullEvent(Event*) OVERRIDE; | 66 virtual bool isNullEvent(Event*) OVERRIDE; |
67 virtual Document* document() OVERRIDE; | 67 virtual Document* document() OVERRIDE; |
68 | 68 |
69 RefPtrWillBeMember<DeviceOrientationData> m_overrideOrientationData; | 69 RefPtrWillBeMember<DeviceOrientationData> m_overrideOrientationData; |
70 Document& m_document; | 70 Document& m_document; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace WebCore | 73 } // namespace WebCore |
74 | 74 |
75 #endif // DeviceOrientationController_h | 75 #endif // DeviceOrientationController_h |
OLD | NEW |