commit | 6027dafffb5695f8e158fb72ba2abf006b7fe602 | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@chromium.org> | Wed May 02 23:15:50 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed May 02 23:15:50 2018 |
tree | bc88992aa0b7f9a5c31e108033960e8f6f658091 | |
parent | 85fe18c6237f0262b2556ce92049970f5fa62695 [diff] |
Allow late initialization of gamepad haptics Several fields of the blink::Gamepad object are only modified when the device is first connected. This is done under the assumption that these device properties cannot change while the device is connected. However, in some cases we expose a gamepad to a page before we have determined the haptic capabilities of the gamepad. Once the capabilities are known, the gamepad object is updated but the new value is not propagated. Instead, the page still sees the null value. This changes the vibrationActuator caching behavior to allow a one-time update from null to non-null after the gamepad is initially connected. BUG=749295 Change-Id: I45eb23a02a26681617d9e0f769c01acfaed21135 Reviewed-on: https://chromium-review.googlesource.com/952221 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#555605}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .