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

Unified Diff: Source/modules/gamepad/NavigatorGamepad.cpp

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index d1c006ef9a76fdb2b6725626b327a8a675a79c49..d0dad9d2fb40e454f33446ccaaab65bad1ede544 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -28,7 +28,7 @@
#include "RuntimeEnabledFeatures.h"
#include "core/dom/Document.h"
-#include "core/frame/DOMWindow.h"
+#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Navigator.h"
#include "core/page/Page.h"
@@ -226,7 +226,7 @@ static bool isGamepadEvent(const AtomicString& eventType)
return eventType == EventTypeNames::gamepadconnected || eventType == EventTypeNames::gamepaddisconnected;
}
-void NavigatorGamepad::didAddEventListener(DOMWindow*, const AtomicString& eventType)
+void NavigatorGamepad::didAddEventListener(LocalDOMWindow*, const AtomicString& eventType)
{
if (RuntimeEnabledFeatures::gamepadEnabled() && isGamepadEvent(eventType)) {
if (page() && page()->visibilityState() == PageVisibilityStateVisible)
@@ -235,13 +235,13 @@ void NavigatorGamepad::didAddEventListener(DOMWindow*, const AtomicString& event
}
}
-void NavigatorGamepad::didRemoveEventListener(DOMWindow*, const AtomicString& eventType)
+void NavigatorGamepad::didRemoveEventListener(LocalDOMWindow*, const AtomicString& eventType)
{
if (isGamepadEvent(eventType))
m_hasEventListener = false;
}
-void NavigatorGamepad::didRemoveAllEventListeners(DOMWindow*)
+void NavigatorGamepad::didRemoveAllEventListeners(LocalDOMWindow*)
{
m_hasEventListener = false;
}

Powered by Google App Engine
This is Rietveld 408576698