Index: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h |
diff --git a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h |
index a0febcc9ba41942688cf145289604897ceb84461..a170945865ca0f2c6cfb34feaf2c20ec62616fe2 100644 |
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h |
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h |
@@ -26,7 +26,7 @@ |
#ifndef NavigatorGamepad_h |
#define NavigatorGamepad_h |
-#include "core/dom/ContextLifecycleObserver.h" |
+#include "core/frame/DOMWindowProperty.h" |
#include "core/frame/LocalDOMWindow.h" |
#include "core/frame/PlatformEventController.h" |
#include "modules/ModulesExport.h" |
@@ -42,7 +42,7 @@ |
class GamepadList; |
class Navigator; |
-class MODULES_EXPORT NavigatorGamepad final : public GarbageCollectedFinalized<NavigatorGamepad>, public Supplement<Navigator>, public ContextLifecycleObserver, public PlatformEventController, public LocalDOMWindow::EventListenerObserver { |
+class MODULES_EXPORT NavigatorGamepad final : public GarbageCollectedFinalized<NavigatorGamepad>, public Supplement<Navigator>, public DOMWindowProperty, public PlatformEventController, public LocalDOMWindow::EventListenerObserver { |
USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); |
public: |
static NavigatorGamepad* from(Document&); |
@@ -65,8 +65,9 @@ |
void didRemoveGamepadEventListeners(); |
bool startUpdatingIfAttached(); |
- // ContextLifecycleObserver |
- void contextDestroyed() override; |
+ // DOMWindowProperty |
+ void willDestroyGlobalObjectInFrame() override; |
+ void willDetachGlobalObjectFromFrame() override; |
// PlatformEventController |
void registerWithDispatcher() override; |