Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 2821303004: cros: Suspend media sessions with display off trigger by tablet power button (Closed)

Created:
3 years, 8 months ago by Qiang(Joe) Xu
Modified:
3 years, 6 months ago
CC:
chromium-reviews, derat+watch_chromium.org, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -16 lines) Patch
M ash/shell_delegate.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/power/tablet_power_button_controller.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/power/tablet_power_button_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 2 chunks +9 lines, -5 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/media/session/media_session_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/media/session/media_session_controllers_manager.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 33 (21 generated)
Qiang(Joe) Xu
Hi all, PTAL, thanks! Note issue 716066 is not included in this CL, as I ...
3 years, 7 months ago (2017-05-17 00:52:40 UTC) #7
Daniel Erat
https://codereview.chromium.org/2821303004/diff/80001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/2821303004/diff/80001/ash/shell_delegate.h#newcode143 ash/shell_delegate.h:143: // Resumes/Suspends media sessions systematically. could you document what ...
3 years, 7 months ago (2017-05-17 01:22:25 UTC) #8
mlamouri (slow - plz ping)
This lgtm. We might want to talk about the various edge cases but ideally, the ...
3 years, 7 months ago (2017-05-17 12:52:27 UTC) #9
Qiang(Joe) Xu
Hi all, PTAL thanks https://codereview.chromium.org/2821303004/diff/80001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/2821303004/diff/80001/ash/shell_delegate.h#newcode143 ash/shell_delegate.h:143: // Resumes/Suspends media sessions systematically. ...
3 years, 7 months ago (2017-05-22 22:58:47 UTC) #12
Daniel Erat
https://codereview.chromium.org/2821303004/diff/100001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/2821303004/diff/100001/ash/shell_delegate.h#newcode143 ash/shell_delegate.h:143: // Suspends all webcontents associated media sessions to stop ...
3 years, 7 months ago (2017-05-22 23:38:34 UTC) #13
Qiang(Joe) Xu
Hi all, PTAL thanks https://codereview.chromium.org/2821303004/diff/100001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/2821303004/diff/100001/ash/shell_delegate.h#newcode143 ash/shell_delegate.h:143: // Suspends all webcontents associated ...
3 years, 7 months ago (2017-05-23 17:54:46 UTC) #23
Daniel Erat
lgtm
3 years, 7 months ago (2017-05-23 18:09:06 UTC) #24
Qiang(Joe) Xu
friendly ping: mlamouri@, would you take another look on the new changes? thanks!
3 years, 6 months ago (2017-05-31 18:19:33 UTC) #25
mlamouri (slow - plz ping)
On 2017/05/31 at 18:19:33, warx wrote: > friendly ping: mlamouri@, would you take another look ...
3 years, 6 months ago (2017-05-31 18:38:54 UTC) #26
Qiang(Joe) Xu
On 2017/05/31 18:38:54, mlamouri wrote: > On 2017/05/31 at 18:19:33, warx wrote: > > friendly ...
3 years, 6 months ago (2017-05-31 18:40:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2821303004/190001
3 years, 6 months ago (2017-05-31 18:41:05 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 21:00:32 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:190001) as
https://chromium.googlesource.com/chromium/src/+/67a6d3fc1811bf403d56f59cf409...

Powered by Google App Engine
This is Rietveld 408576698