DescriptionTab 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 #Messages
Total messages: 19 (2 generated)
|