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

Issue 591963002: Tab audio mute control (views UI), behind a switch (off by default). (Closed)

Created:
6 years, 3 months ago by miu
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tfarina, asvitkine+watch_chromium.org, oshima+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Tab audio mute control (views UI), behind a switch (off by default). This change consolidates all of the existing media indicator UI into a new MediaIndicatorButton class. When the indicator is transitioned to the audio playing or muting state, the button functionality activates; and, when clicked, will toggle tab-wide audio muting. Otherwise, the view only serves to paint the indicator icon with all mouse/gesture events handled by Tab (its parent View). Added UMA's to detect usage of the feature, attempted usage of the disabled feature, and possible close button mis-clicks. This new feature is off by default. The plan is to run a UI experiment and gather the data needed to drive later launch decisions. Note: This change depends on: https://codereview.chromium.org/586303004/ BUG=360372, 384179 TEST=With --enable-tab-audio-muting, user can click audio indicator to toggle tab muting, or use the tab context menu to toggle muting of one or more selected tabs. Committed: https://crrev.com/094342f995ebe8303c942933560eb96c72894596 Cr-Commit-Position: refs/heads/master@{#296869}

Patch Set 1 #

Patch Set 2 : Better solution for post-click image + added mouse dragging UMA stat. #

Total comments: 6

Patch Set 3 : Addressed mpearson's comments; added a few CloseTab UMA's. #

Total comments: 35

Patch Set 4 : Addressed all of sky's first round comments. #

Patch Set 5 : Fix generated_resources.grd changes for Mac compile. #

Total comments: 17

Patch Set 6 : Addressed sky's round 2 comments. #

Patch Set 7 : rebase + add about:flags experiment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+639 lines, -91 lines) Patch
M chrome/app/generated_resources.grd View 4 chunks +33 lines, -0 lines 0 comments Download
A chrome/app/theme/default_100_percent/common/tab_audio_muting_affordance.png View Binary file 0 comments Download
A chrome/app/theme/default_100_percent/common/tab_audio_muting_indicator.png View Binary file 0 comments Download
A chrome/app/theme/default_200_percent/common/tab_audio_muting_affordance.png View Binary file 0 comments Download
A chrome/app/theme/default_200_percent/common/tab_audio_muting_indicator.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_menu_model.cc View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.cc View 1 2 3 4 5 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_utils.h View 1 2 3 4 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/ui/tabs/tab_utils.cc View 1 2 3 4 5 6 chunks +70 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/tabs/media_indicator_button.h View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/tabs/media_indicator_button.cc View 1 2 3 4 5 1 chunk +159 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 2 3 4 5 8 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 15 chunks +48 lines, -56 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 1 2 3 4 5 9 chunks +64 lines, -20 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 5 chunks +71 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
miu
Change description explains it all. PTAL, specifically: mpearson: I added some UMA's. As I'm new ...
6 years, 3 months ago (2014-09-21 20:45:28 UTC) #2
Peter Kasting
On 2014/09/21 20:45:28, miu wrote: > oshima: Need OWNERS for graphics added to chrome/app/theme. Do ...
6 years, 3 months ago (2014-09-22 06:59:09 UTC) #3
oshima
c/a/theme lgtm optimize-png-files.sh is "nice to run", but not required. I usually run it before ...
6 years, 3 months ago (2014-09-22 16:38:25 UTC) #4
Mark P
RecordAction calls in tab_strip_model.cc and tab.cc generally lgtm actions.xml also generally lgtm Have you tested ...
6 years, 3 months ago (2014-09-23 17:30:49 UTC) #5
miu
> Have you tested this by opening about:user-actions and seeing if actions are > recorded ...
6 years, 3 months ago (2014-09-23 18:27:59 UTC) #6
Mark P
https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/views/tabs/tab.cc#newcode814 chrome/browser/ui/views/tabs/tab.cc:814: if (media_indicator_button_->enabled()) On 2014/09/23 18:27:58, miu wrote: > On ...
6 years, 3 months ago (2014-09-23 18:56:15 UTC) #7
miu
On 2014/09/23 18:56:15, Mark P wrote: > Are you planning to do sequence analysis? If ...
6 years, 3 months ago (2014-09-23 19:28:27 UTC) #8
Mark P
Thanks for looking in the CloseTab situation. This change lgtm, baring one comment below. (remember ...
6 years, 3 months ago (2014-09-23 19:49:56 UTC) #9
sky
https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc#newcode705 chrome/browser/ui/tabs/tab_strip_model.cc:705: void TabStripModel::SetTabAudioMuted(int index, bool mute) { Move this and ...
6 years, 3 months ago (2014-09-23 22:58:18 UTC) #10
miu
Thanks, sky. Addressed all your comments. PTAL. https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc#newcode705 chrome/browser/ui/tabs/tab_strip_model.cc:705: void TabStripModel::SetTabAudioMuted(int ...
6 years, 3 months ago (2014-09-24 22:34:16 UTC) #11
sky
https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc#newcode705 chrome/browser/ui/tabs/tab_strip_model.cc:705: void TabStripModel::SetTabAudioMuted(int index, bool mute) { On 2014/09/24 22:34:15, ...
6 years, 2 months ago (2014-09-25 19:25:05 UTC) #12
miu
Addressed all round 2 comments. PTAL. https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/591963002/diff/40001/chrome/browser/ui/tabs/tab_strip_model.cc#newcode705 chrome/browser/ui/tabs/tab_strip_model.cc:705: void TabStripModel::SetTabAudioMuted(int index, ...
6 years, 2 months ago (2014-09-25 22:49:36 UTC) #13
sky
LGTM https://codereview.chromium.org/591963002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button.cc File chrome/browser/ui/views/tabs/media_indicator_button.cc (right): https://codereview.chromium.org/591963002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button.cc#newcode150 chrome/browser/ui/views/tabs/media_indicator_button.cc:150: else On 2014/09/25 22:49:36, miu wrote: > On ...
6 years, 2 months ago (2014-09-25 23:39:47 UTC) #14
miu
Thanks everyone for the quick turnaround on this! Much appreciated, given perf season and all. ...
6 years, 2 months ago (2014-09-26 01:47:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591963002/120001
6 years, 2 months ago (2014-09-26 01:48:36 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001) as ac89c10d721ddf0184e552f1ab6116ec56889cfa
6 years, 2 months ago (2014-09-26 03:09:56 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 03:10:45 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/094342f995ebe8303c942933560eb96c72894596
Cr-Commit-Position: refs/heads/master@{#296869}

Powered by Google App Engine
This is Rietveld 408576698