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

Issue 2812223005: Display current output device icon in the floating volume row when switching output devices (Closed)

Created:
3 years, 8 months ago by minch1
Modified:
3 years, 8 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Display current output device icon in the floating volume row when switching output devices. Changes in this cl, 1. Remove the arrow when none output devices are connected. 2. When there is external output device connected, show the device icon in the floating audio row. 3. Make the slider of brightness row in system tray always extend to the end of the row. Keep the same length as the audio slider when none external output / input devices are connected. 4. Input devices type as AUDIO_TYPE_HOTWORD, AUDIO_TYPE_POST_MIX_LOOPBACK and AUDIO_TYPE_POST_DSP_LOOPBACK will not be shown in the UI. Treat them as non external input devices. Since the arrow (more_button_) is part of the update. Move the logic of more_button_ to UpdateDeviceTypeAndMore(). BUG=686946 Review-Url: https://codereview.chromium.org/2812223005 Cr-Commit-Position: refs/heads/master@{#465877} Committed: https://chromium.googlesource.com/chromium/src/+/976586028ad74aceffb12622af62305a1a00c163

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address comments. #

Total comments: 6

Patch Set 3 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -37 lines) Patch
M ash/system/audio/volume_view.cc View 1 2 2 chunks +49 lines, -32 lines 0 comments Download
M ash/system/brightness/tray_brightness.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (29 generated)
minch1
Hi, tdanderson@, can you help review? Thanks.
3 years, 8 months ago (2017-04-12 20:23:01 UTC) #7
tdanderson
Please see my comments below. https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc#newcode3 ash/system/audio/volume_view.cc:3: // found in the ...
3 years, 8 months ago (2017-04-13 16:15:52 UTC) #10
minch1
tdanderson@, can you help check my replies? Thanks. https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc#newcode167 ash/system/audio/volume_view.cc:167: if ...
3 years, 8 months ago (2017-04-13 17:47:39 UTC) #11
tdanderson
https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc#newcode167 ash/system/audio/volume_view.cc:167: if (is_default_view_ && !audio_handler->has_alternative_output()) { On 2017/04/13 17:47:39, minch1 ...
3 years, 8 months ago (2017-04-13 20:54:56 UTC) #14
minch1
Hi, tdanderson@, jennyz@, can you help review? Thanks. https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/1/ash/system/audio/volume_view.cc#newcode170 ash/system/audio/volume_view.cc:170: more_button_->InvalidateLayout(); ...
3 years, 8 months ago (2017-04-13 23:16:01 UTC) #22
tdanderson
ash/ LGTM with a few nits addressed. Also, very nice CL description! https://codereview.chromium.org/2812223005/diff/20001/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc ...
3 years, 8 months ago (2017-04-18 23:50:29 UTC) #27
minch1
Hi, jennyz@, xiaoyinh@, can you help take a look? Thanks. https://codereview.chromium.org/2812223005/diff/20001/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/20001/ash/system/audio/volume_view.cc#newcode169 ...
3 years, 8 months ago (2017-04-19 00:01:42 UTC) #30
tdanderson
https://codereview.chromium.org/2812223005/diff/20001/ash/system/audio/volume_view.cc File ash/system/audio/volume_view.cc (right): https://codereview.chromium.org/2812223005/diff/20001/ash/system/audio/volume_view.cc#newcode169 ash/system/audio/volume_view.cc:169: if (is_default_view_ && !audio_handler->has_alternative_output() && On 2017/04/19 00:01:41, minch1 ...
3 years, 8 months ago (2017-04-19 15:18:09 UTC) #33
jennyz
lgtm
3 years, 8 months ago (2017-04-19 22:07:59 UTC) #34
xiaoyinh(OOO Sep 11-29)
lgtm
3 years, 8 months ago (2017-04-20 02:10:38 UTC) #35
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/2812223005/40001
3 years, 8 months ago (2017-04-20 02:26:33 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 03:03:50 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/976586028ad74aceffb12622af62...

Powered by Google App Engine
This is Rietveld 408576698