| 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;
|
| }
|
|
|