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

Issue 2485353002: Fix the volume strength icon to reflect the volume control clicks (Closed)

Created:
4 years, 1 month ago by yiyix
Modified:
4 years, 1 month ago
Reviewers:
tdanderson, James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the volume strength icon to reflect the volume control clicks - When the thumb is dragged to the left, the volume strength icon still shows that the audio is not muted. This bug is caused by the internal audio state, which takes int only, is different from the slider volume state, which takes floats only. - When user clicks on volume control slider, the volume strength icon is not updated accordingly. This is because the volume strength icon was not called to update. TEST=MANUAL - Build the Chrome OS to an actual device and test if the bugs are fixed. BUG=651930, 651916 Committed: https://crrev.com/480579a68ad8f86bd7e7b0d798d515550644fd9c Cr-Commit-Position: refs/heads/master@{#431811}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix variable type #

Total comments: 4

Patch Set 3 : fix comments #

Total comments: 1

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M ash/common/system/chromeos/audio/volume_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/audio/volume_view.cc View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 50 (39 generated)
yiyix
@tdanderson, @jamescook, Could you please take a look at this change?
4 years, 1 month ago (2016-11-11 17:27:10 UTC) #27
tdanderson
https://codereview.chromium.org/2485353002/diff/160001/ash/common/system/chromeos/audio/volume_view.cc File ash/common/system/chromeos/audio/volume_view.cc (right): https://codereview.chromium.org/2485353002/diff/160001/ash/common/system/chromeos/audio/volume_view.cc#newcode313 ash/common/system/chromeos/audio/volume_view.cc:313: float current_volume = audio_delegate_->GetOutputVolumeLevel(); It looks like TrayAudioDelegate has ...
4 years, 1 month ago (2016-11-11 18:30:25 UTC) #36
yiyix
@tdanderson, @jamescook: could you please check it again? Thank you. https://codereview.chromium.org/2485353002/diff/160001/ash/common/system/chromeos/audio/volume_view.cc File ash/common/system/chromeos/audio/volume_view.cc (right): https://codereview.chromium.org/2485353002/diff/160001/ash/common/system/chromeos/audio/volume_view.cc#newcode313 ...
4 years, 1 month ago (2016-11-11 19:01:24 UTC) #38
tdanderson
One more comment below. LGTM unless James has any objections (I know he's working on ...
4 years, 1 month ago (2016-11-11 19:48:35 UTC) #39
James Cook
LGTM after fixing tdanderson's nit https://codereview.chromium.org/2485353002/diff/180001/ash/common/system/chromeos/audio/volume_view.cc File ash/common/system/chromeos/audio/volume_view.cc (right): https://codereview.chromium.org/2485353002/diff/180001/ash/common/system/chromeos/audio/volume_view.cc#newcode312 ash/common/system/chromeos/audio/volume_view.cc:312: int new_volume = value ...
4 years, 1 month ago (2016-11-11 22:21:15 UTC) #40
yiyix
https://codereview.chromium.org/2485353002/diff/180001/ash/common/system/chromeos/audio/volume_view.cc File ash/common/system/chromeos/audio/volume_view.cc (right): https://codereview.chromium.org/2485353002/diff/180001/ash/common/system/chromeos/audio/volume_view.cc#newcode312 ash/common/system/chromeos/audio/volume_view.cc:312: int new_volume = value * 100; On 2016/11/11 22:21:15, ...
4 years, 1 month ago (2016-11-11 22:27:54 UTC) #41
James Cook
optional nit, still lgtm https://codereview.chromium.org/2485353002/diff/200001/ash/common/system/chromeos/audio/volume_view.cc File ash/common/system/chromeos/audio/volume_view.cc (right): https://codereview.chromium.org/2485353002/diff/200001/ash/common/system/chromeos/audio/volume_view.cc#newcode312 ash/common/system/chromeos/audio/volume_view.cc:312: int new_volume = value * ...
4 years, 1 month ago (2016-11-11 22:30:26 UTC) #42
yiyix
On 2016/11/11 22:30:26, James Cook wrote: > optional nit, still lgtm > > https://codereview.chromium.org/2485353002/diff/200001/ash/common/system/chromeos/audio/volume_view.cc > ...
4 years, 1 month ago (2016-11-13 22:25:26 UTC) #43
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/2485353002/220001
4 years, 1 month ago (2016-11-13 22:25:42 UTC) #46
commit-bot: I haz the power
Committed patchset #4 (id:220001)
4 years, 1 month ago (2016-11-13 22:56:00 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-11-13 22:58:27 UTC) #50
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/480579a68ad8f86bd7e7b0d798d515550644fd9c
Cr-Commit-Position: refs/heads/master@{#431811}

Powered by Google App Engine
This is Rietveld 408576698