Chromium Code Reviews
Descriptioncros: Suspend media sessions with display off trigger by tablet power button
Changes:
Convertible/tablet device's side power button is described as tablet power button. It will set display forced-off or forced-on just like android phone. This CL is going to add extra functionality to tablet power button, which is suspending media sessions when display is forced-off by tablet power button.
BUG=694384
TEST=tested on kevin, with two youtube browser tabs and one youtube arc++ app. arc++ app's audio is not controlled by the tablet power button.
(1) browser tabs audio playing, pressing power button to set display off, audio will pause.
(2) browser tabs audio pausing, pressing power button to set display off will still pause audio, pressing again will keep audio paused.
Also added test coverage in TabletPowerButtonControllerTest.
Review-Url: https://codereview.chromium.org/2821303004
Cr-Commit-Position: refs/heads/master@{#476018}
Committed: https://chromium.googlesource.com/chromium/src/+/67a6d3fc1811bf403d56f59cf4099e3f88b68063
Patch Set 1 #Patch Set 2 : apply patch from 2873983002 #Patch Set 3 : rebase #
Total comments: 9
Patch Set 4 : feedback & remove resuming #
Total comments: 6
Patch Set 5 : enabled on Chrome OS #Patch Set 6 : tests #Patch Set 7 : rebase #Messages
Total messages: 33 (21 generated)
|