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

Issue 2297833002: Fix controlling volume slider with keyboard (Closed)

Created:
4 years, 3 months ago by yiyix
Modified:
4 years, 3 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix controlling volume slider with keyboard In the current code base, a float number is used when users try to control the volume slider by using keyboard. It increases/decreases the volume by 0.1 (or 10%) after each press. In the CL2281173002, it accidentally changed this increment to an integer, so the volume either jumps to silent or max. BUG=631775 Committed: https://crrev.com/362963e633c27e32ecbd7a9f2bcd9752281dfbab Cr-Commit-Position: refs/heads/master@{#415700}

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : merge #

Total comments: 2

Patch Set 4 : improve tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M ui/views/controls/slider.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/slider_unittest.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
yiyix
Could you please take a look? Thank you
4 years, 3 months ago (2016-08-30 19:30:39 UTC) #5
sadrul
Can you add a test in slider_unittest.cc so this doesn't break again?
4 years, 3 months ago (2016-08-30 19:32:31 UTC) #6
yiyix
On 2016/08/30 19:32:31, sadrul wrote: > Can you add a test in slider_unittest.cc so this ...
4 years, 3 months ago (2016-08-30 20:17:37 UTC) #7
sadrul
On 2016/08/30 20:17:37, yiyix wrote: > On 2016/08/30 19:32:31, sadrul wrote: > > Can you ...
4 years, 3 months ago (2016-08-30 20:19:50 UTC) #8
sadrul
lgtm https://codereview.chromium.org/2297833002/diff/40001/ui/views/controls/slider_unittest.cc File ui/views/controls/slider_unittest.cc (right): https://codereview.chromium.org/2297833002/diff/40001/ui/views/controls/slider_unittest.cc#newcode314 ui/views/controls/slider_unittest.cc:314: EXPECT_FLOAT_EQ(0.5, slider()->value()); Instead of hardcoding the values, just ...
4 years, 3 months ago (2016-08-31 15:42:22 UTC) #15
yiyix
https://codereview.chromium.org/2297833002/diff/40001/ui/views/controls/slider_unittest.cc File ui/views/controls/slider_unittest.cc (right): https://codereview.chromium.org/2297833002/diff/40001/ui/views/controls/slider_unittest.cc#newcode314 ui/views/controls/slider_unittest.cc:314: EXPECT_FLOAT_EQ(0.5, slider()->value()); On 2016/08/31 15:42:22, sadrul wrote: > Instead ...
4 years, 3 months ago (2016-08-31 16:12:52 UTC) #18
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/2297833002/60001
4 years, 3 months ago (2016-08-31 18:41:59 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-31 18:49:36 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 18:52:44 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/362963e633c27e32ecbd7a9f2bcd9752281dfbab
Cr-Commit-Position: refs/heads/master@{#415700}

Powered by Google App Engine
This is Rietveld 408576698