DescriptionNotify the browser when the page lost interest about gamepads
The page visibility logic used in NavigatorGamepad via DeviceEventControllerBase
assumes that we only want to tell the dispatcher that we are uninterested in
events if we have an event listener. For gamepad that is not perfect where the
the page can ask the gamepad state anytime via navigator.getGamepads().
This CL doesn't change visible behavior thus no tests. The enhancement is that
now we properly tell the browser that we are not intereseted in gamepads while
we are hidden so it can suspend the polling thread. Visibility related tests
should be added for gamepad though, I will do that later.
This is a fixed reland of r176618
BUG=386846
R=abarth@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176789
Patch Set 1 #
Total comments: 1
Patch Set 2 : gamepads||webkitGamepads #
Messages
Total messages: 8 (0 generated)
|