| 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 ScreenOrientation_h | 5 #ifndef ScreenOrientation_h |
| 6 #define ScreenOrientation_h | 6 #define ScreenOrientation_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" |
| 9 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| 10 #include "core/frame/DOMWindowProperty.h" | |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" | 12 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" |
| 13 #include "wtf/text/AtomicString.h" | 13 #include "wtf/text/AtomicString.h" |
| 14 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class ExecutionContext; | 18 class ExecutionContext; |
| 19 class LocalFrame; | 19 class LocalFrame; |
| 20 class ScriptPromise; | 20 class ScriptPromise; |
| 21 class ScriptState; | 21 class ScriptState; |
| 22 class ScreenOrientationControllerImpl; | 22 class ScreenOrientationControllerImpl; |
| 23 | 23 |
| 24 class ScreenOrientation final : public EventTargetWithInlineData, | 24 class ScreenOrientation final : public EventTargetWithInlineData, |
| 25 public DOMWindowProperty { | 25 public ContextClient { |
| 26 DEFINE_WRAPPERTYPEINFO(); | 26 DEFINE_WRAPPERTYPEINFO(); |
| 27 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientation); | 27 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientation); |
| 28 | 28 |
| 29 public: | 29 public: |
| 30 static ScreenOrientation* create(LocalFrame*); | 30 static ScreenOrientation* create(LocalFrame*); |
| 31 | 31 |
| 32 ~ScreenOrientation() override; | 32 ~ScreenOrientation() override; |
| 33 | 33 |
| 34 // EventTarget implementation. | 34 // EventTarget implementation. |
| 35 const WTF::AtomicString& interfaceName() const override; | 35 const WTF::AtomicString& interfaceName() const override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 ScreenOrientationControllerImpl* controller(); | 57 ScreenOrientationControllerImpl* controller(); |
| 58 | 58 |
| 59 WebScreenOrientationType m_type; | 59 WebScreenOrientationType m_type; |
| 60 unsigned short m_angle; | 60 unsigned short m_angle; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // ScreenOrientation_h | 65 #endif // ScreenOrientation_h |
| OLD | NEW |