| Index: third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
|
| diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
|
| index 723cf0987669bcfc29ab5f336bfb0b44633870ed..ec978cff0a9bbb0bf7364f16500213a9aecf506c 100644
|
| --- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
|
| +++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.h
|
| @@ -20,7 +20,7 @@
|
| #ifndef NavigatorVibration_h
|
| #define NavigatorVibration_h
|
|
|
| -#include "core/dom/ContextLifecycleObserver.h"
|
| +#include "core/frame/DOMWindowProperty.h"
|
| #include "modules/ModulesExport.h"
|
| #include "platform/Supplementable.h"
|
| #include "platform/heap/GarbageCollected.h"
|
| @@ -30,7 +30,6 @@
|
|
|
| namespace blink {
|
|
|
| -class LocalFrame;
|
| class Navigator;
|
| class VibrationController;
|
|
|
| @@ -47,7 +46,7 @@
|
| class MODULES_EXPORT NavigatorVibration final
|
| : public GarbageCollectedFinalized<NavigatorVibration>
|
| , public Supplement<Navigator>
|
| - , public ContextLifecycleObserver {
|
| + , public DOMWindowProperty {
|
| USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration);
|
| WTF_MAKE_NONCOPYABLE(NavigatorVibration);
|
| public:
|
| @@ -60,7 +59,7 @@
|
| static bool vibrate(Navigator&, unsigned time);
|
| static bool vibrate(Navigator&, const VibrationPattern&);
|
|
|
| - VibrationController* controller(const LocalFrame&);
|
| + VibrationController* controller();
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| @@ -69,8 +68,8 @@
|
|
|
| explicit NavigatorVibration(Navigator&);
|
|
|
| - // Inherited from ContextLifecycleObserver.
|
| - void contextDestroyed() override;
|
| + // Inherited from DOMWindowProperty.
|
| + void willDetachGlobalObjectFromFrame() override;
|
|
|
| static void collectHistogramMetrics(const LocalFrame&);
|
|
|
|
|