Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Unified Diff: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h

Issue 2134063002: Remove DOMWindowLifecycleObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 8648d75f6061563570f95361dba231879188385d..a170945865ca0f2c6cfb34feaf2c20ec62616fe2 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h
@@ -26,8 +26,8 @@
#ifndef NavigatorGamepad_h
#define NavigatorGamepad_h
-#include "core/frame/DOMWindowLifecycleObserver.h"
#include "core/frame/DOMWindowProperty.h"
+#include "core/frame/LocalDOMWindow.h"
#include "core/frame/PlatformEventController.h"
#include "modules/ModulesExport.h"
#include "platform/AsyncMethodRunner.h"
@@ -42,7 +42,7 @@ class Gamepad;
class GamepadList;
class Navigator;
-class MODULES_EXPORT NavigatorGamepad final : public GarbageCollectedFinalized<NavigatorGamepad>, public Supplement<Navigator>, public DOMWindowProperty, public PlatformEventController, public DOMWindowLifecycleObserver {
+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&);
@@ -76,7 +76,7 @@ private:
void didUpdateData() override;
void pageVisibilityChanged() override;
- // DOMWindowLifecycleObserver
+ // LocalDOMWindow::EventListenerObserver
void didAddEventListener(LocalDOMWindow*, const AtomicString&) override;
void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override;
void didRemoveAllEventListeners(LocalDOMWindow*) override;

Powered by Google App Engine
This is Rietveld 408576698