commit | f0f0ecac94a6bd832352a8fc8d2be46dbf0957a1 | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Wed Nov 01 01:05:18 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 01 01:05:18 2017 |
tree | cff138ee72e69624fdcce2dd7d92ae5e222471a5 | |
parent | f634e30b9c80fc2a281542e27763a726f33fa3ca [diff] |
Implement GamepadHapticActuator GamepadHapticActuator receives haptics commands and forwards them to GamepadDispatcher, which dispatches them to the device service. It also manages the state of promises which have been returned to the user as the result of haptics commands. Haptics commands include playEffect, which plays a vibration effect on the target gamepad, and reset, which stops vibration and resets any vibration-related state on the gamepad. Both commands return a promise that is resolved with a result code once the command is completed. BUG=749295 Change-Id: I457c4b0e024c88adcaecdf6695959e06acb20a8e Reviewed-on: https://chromium-review.googlesource.com/747050 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#513032}
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 .