commit | dba32ba31fd509b9c7afd56a1ecdb6a8525ea445 | [log] [tgz] |
---|---|---|
author | Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | Thu Jun 30 18:13:59 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 30 18:13:59 2022 |
tree | d94c6fb0565f7a264480d3b6c6ebc5cd8e58c059 | |
parent | 1a1c63fb038797fcdd5016afeafb0203a602a1b3 [diff] |
Add requestPermission() to DeviceOrientationEvent and DeviceMotionEvent. Currently implemented behind the "DeviceOrientationRequestPermission" runtime flag. The API is kind of a stub at the moment: we do not prompt for permission and merely resolve the returned promises to either "granted" or "denied" based on the current Motion Sensor permissions. The idea is to let developers start playing with the API while also gathering user counter information so that we can later decide when to switch to prompting for permission, preferably by default. Right now, we count calls to requestPermission() as well as usages of ondevice{motion,orientation} that happen without calling requestPermission() first. Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/j7sGtCBGaxA Bug: 947112 Change-Id: I2e0209755402b288c58b039aa800ecccf64bf8a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3714175 Commit-Queue: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by: Reilly Grant <reillyg@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/main@{#1019740}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.