| Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h
|
| diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h
|
| index dadb7f5da61ef47c061c04d9de658e219791cdec..223ecaa6e54c3feb4f5ec9dae941a79f456498c2 100644
|
| --- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h
|
| +++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h
|
| @@ -5,14 +5,14 @@
|
| #ifndef ScreenOrientationControllerImpl_h
|
| #define ScreenOrientationControllerImpl_h
|
|
|
| +#include <memory>
|
| #include "core/dom/Document.h"
|
| -#include "core/frame/PlatformEventController.h"
|
| #include "core/frame/ScreenOrientationController.h"
|
| +#include "core/page/PageVisibilityObserver.h"
|
| #include "modules/ModulesExport.h"
|
| #include "public/platform/modules/screen_orientation/WebLockOrientationCallback.h"
|
| #include "public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
|
| #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -22,7 +22,7 @@ class WebScreenOrientationClient;
|
| class MODULES_EXPORT ScreenOrientationControllerImpl final
|
| : public ScreenOrientationController,
|
| public ContextLifecycleObserver,
|
| - public PlatformEventController {
|
| + public PageVisibilityObserver {
|
| USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationControllerImpl);
|
| WTF_MAKE_NONCOPYABLE(ScreenOrientationControllerImpl);
|
|
|
| @@ -48,17 +48,12 @@ class MODULES_EXPORT ScreenOrientationControllerImpl final
|
|
|
| static WebScreenOrientationType computeOrientation(const IntRect&, uint16_t);
|
|
|
| - // Inherited from PlatformEventController.
|
| - void didUpdateData() override;
|
| - void registerWithDispatcher() override;
|
| - void unregisterWithDispatcher() override;
|
| - bool hasLastData() override;
|
| -
|
| - // Inherited from ContextLifecycleObserver and PageVisibilityObserver.
|
| + // Inherited from ContextLifecycleObserver.
|
| void contextDestroyed(ExecutionContext*) override;
|
| + // Inherited from PageVisibilityObserver.
|
| void pageVisibilityChanged() override;
|
|
|
| - void notifyDispatcher();
|
| + void notifyAccurateListen();
|
|
|
| void updateOrientation();
|
|
|
| @@ -72,6 +67,7 @@ class MODULES_EXPORT ScreenOrientationControllerImpl final
|
| WebScreenOrientationClient* m_client;
|
| TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer;
|
| bool m_activeLock = false;
|
| + bool m_startedAccurateListen = false;
|
| };
|
|
|
| } // namespace blink
|
|
|