Chromium Code Reviews| Index: Source/modules/screen_orientation/ScreenOrientationController.h |
| diff --git a/Source/modules/screen_orientation/ScreenOrientationController.h b/Source/modules/screen_orientation/ScreenOrientationController.h |
| index 0e5e4b7741fc73e835d8bda504a3679719e6c707..1b6f3b9b052ef4a84e21309f02e41767124ae701 100644 |
| --- a/Source/modules/screen_orientation/ScreenOrientationController.h |
| +++ b/Source/modules/screen_orientation/ScreenOrientationController.h |
| @@ -5,7 +5,6 @@ |
| #ifndef ScreenOrientationController_h |
| #define ScreenOrientationController_h |
| -#include "core/page/Page.h" |
| #include "core/page/PageLifecycleObserver.h" |
| #include "platform/Supplementable.h" |
| #include "public/platform/WebLockOrientationCallback.h" |
| @@ -20,22 +19,22 @@ namespace WebCore { |
| class FrameView; |
| -class ScreenOrientationController FINAL : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>, public WillBeHeapSupplement<Page>, public PageLifecycleObserver { |
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); |
|
zerny-chromium
2014/06/10 11:43:42
revert
|
| +class ScreenOrientationController FINAL : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>, public Supplement<LocalFrame>, public PageLifecycleObserver { |
|
zerny-chromium
2014/06/10 11:43:42
WillBeHeapSupplement<LocalFrame>
|
| + WTF_MAKE_NONCOPYABLE(ScreenOrientationController); |
| public: |
| virtual ~ScreenOrientationController(); |
| blink::WebScreenOrientationType orientation() const; |
| - static void provideTo(Page&, blink::WebScreenOrientationClient*); |
| - static ScreenOrientationController& from(Page&); |
| + static void provideTo(LocalFrame&, blink::WebScreenOrientationClient*); |
| + static ScreenOrientationController& from(LocalFrame&); |
| static const char* supplementName(); |
| void lockOrientation(blink::WebScreenOrientationLockType, blink::WebLockOrientationCallback*); |
| void unlockOrientation(); |
| private: |
| - explicit ScreenOrientationController(Page&, blink::WebScreenOrientationClient*); |
| + explicit ScreenOrientationController(LocalFrame&, blink::WebScreenOrientationClient*); |
|
sof
2014/06/09 21:18:58
nit: remove explicit.
|
| static blink::WebScreenOrientationType computeOrientation(FrameView*); |
| // Inherited from PageLifecycleObserver. |
| @@ -43,6 +42,7 @@ private: |
| blink::WebScreenOrientationType m_overrideOrientation; |
| blink::WebScreenOrientationClient* m_client; |
| + LocalFrame& m_frame; |
| }; |
| } // namespace WebCore |