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

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

Issue 348083003: Revert of Notify the browser when the page lost interest about gamepads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/modules/gamepad/NavigatorGamepad.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index d8019364487ee9201b6ca19fbd257b4a6615d663..0b39cea0a4775edb93e83c9af4196c9516b2f78a 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -228,14 +228,4 @@
m_hasEventListener = false;
}
-void NavigatorGamepad::pageVisibilityChanged()
-{
- // We inform the embedder whether it needs to provide gamepad data for us.
- // In this sense it is irrelevant whether we need an event listener hence there is no check here.
- if (page()->visibilityState() == PageVisibilityStateVisible)
- startUpdating();
- else
- stopUpdating();
-}
-
} // namespace WebCore
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698