commit | 1c8d73b56bafcbf0df5cbc2b5361b2fe3549bf16 | [log] [tgz] |
---|---|---|
author | Esmael El-Moslimany <aee@chromium.org> | Thu Nov 22 07:44:54 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 22 07:44:54 2018 |
tree | 094b68d011f85b483e514d767282d78cfbadf374 | |
parent | 9ed95380941759c1df3832216887af600fdaf6ed [diff] |
Audio Player: replace paper-slider with cr-slider The audio player's progress slider uses sliders in a different way from other sliders in settings. The value of the slider is updated frequently when playing. While the knob is being dragged, audio playback is paused and is resumed when the drag completes. Previously the audio player was using the immediate-value-changed and value-changed events to determine if the knob was being dragged. A couple changes were required to support the audio player progress slider. When the |dragging| property is changed, the |dragging-changed| event is dispatched. And the slider |value| is updated after dragging has started and before dragging has completed. This allows the audio player to pause playback, ignore any subsequent updates to the progress and accept changes to progress during dragging. When dragging is done, the audio player has access to the most up-to-date value of the slider so it can update the time of playback then resume playing. Inverting the direction of ArrowRight/ArrowLeft keybindings when the direction is RTL. Bug: 902873 Change-Id: I898889fc882ef0b1459ceabf8d27ed5ad62267c0 Reviewed-on: https://chromium-review.googlesource.com/c/1325012 Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Esmael El-Moslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#610339}
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 .