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

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

Issue 345013002: Notify the browser when the page lost interest about gamepads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed for relanding 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/DeviceEventControllerBase.h ('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 89df5d78a274a94c4f2991e43e5cc9263946facb..c8f23a06826e1984843df0b8e4501c1f186f1dc9 100644
--- a/Source/modules/gamepad/NavigatorGamepad.h
+++ b/Source/modules/gamepad/NavigatorGamepad.h
@@ -76,6 +76,7 @@ private:
virtual void unregisterWithDispatcher() OVERRIDE;
virtual bool hasLastData() OVERRIDE;
virtual void didUpdateData() OVERRIDE;
+ virtual void pageVisibilityChanged() OVERRIDE;
// DOMWindowLifecycleObserver
virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERRIDE;
@@ -84,6 +85,7 @@ private:
PersistentWillBeMember<GamepadList> m_gamepads;
PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads;
+ bool m_wasPolled;
};
} // namespace WebCore
« no previous file with comments | « Source/core/frame/DeviceEventControllerBase.h ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698