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

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

Issue 306363002: Gamepad: honor page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: just a comment that it will be better with Oilpan 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
« no previous file with comments | « Source/core/frame/DeviceSensorEventController.cpp ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.h
diff --git a/Source/modules/gamepad/NavigatorGamepad.h b/Source/modules/gamepad/NavigatorGamepad.h
index 15f9cf7a3bb73862130ae8ea347098210f7f2f9c..84646e156fe8503046063d966a94ed95606844d8 100644
--- a/Source/modules/gamepad/NavigatorGamepad.h
+++ b/Source/modules/gamepad/NavigatorGamepad.h
@@ -71,6 +71,7 @@ private:
virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
// DeviceSensorEventController
+ virtual void pageVisibilityChanged() OVERRIDE FINAL;
virtual void registerWithDispatcher() OVERRIDE;
virtual void unregisterWithDispatcher() OVERRIDE;
virtual bool hasLastData() OVERRIDE;
@@ -83,8 +84,14 @@ private:
virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
+ // Supplement
+ virtual void willBeDestroyed();
+
+ void invalidateCanContinueDispatchingSentinel();
+
PersistentWillBeMember<GamepadList> m_gamepads;
PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads;
+ bool* m_canContinueDispatchingSentinelPtr;
};
} // namespace WebCore
« no previous file with comments | « Source/core/frame/DeviceSensorEventController.cpp ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698