commit | 20edec21c921e9b963af945f715bde88070b9c2c | [log] [tgz] |
---|---|---|
author | Mounir Lamouri <mlamouri@chromium.org> | Fri Dec 14 17:41:37 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 14 17:41:37 2018 |
tree | 83a004a365559117be4fbd5c56e2b79eadae6d9d | |
parent | 84ecbf7c0b1eca668dba1471a50f065c6d558737 [diff] |
Video Wake Lock: move all logic to Blink and use mojo service. This is implementing VideoWakeLock insideo core/html/media/ in Blink. The component is created by the HTMLVideoElement and then reacts based on internal events. When the wake lock state changes, it uses the wake lock service to notify of the state change. Two side notes: - This is using the RemotePlaybackObserver/RemotePlaybackController that were added to allow core/ to be notified of remote playback changes. It allows to clarify a weird behavior that was in the browser implementation. - html_media_test_helper.{h,cc} files have been created to have a central place for common html media mock, stubs, etc. The audio wake lock is based on audibility, not on the element itself. Whether it can or should be moved to Blink wasn't yet decided. Associated design doc: https://docs.google.com/document/d/1VNX6OIKodKg9-SWnY8eWiu2217b7FsgCECV2_wBap0U/edit?hl=en&pli=1# Bug: 903793 Change-Id: I5f3f7fdfa345ef829f3efdc5689faef40b03f94c Reviewed-on: https://chromium-review.googlesource.com/c/1375098 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Mounir Lamouri <mlamouri@chromium.org> Cr-Commit-Position: refs/heads/master@{#616728}
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 .