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

Issue 2722006: Mute when clicked on sound button in ChromeOS media player. (Closed)

Created:
10 years, 6 months ago by xiyuan
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, arv (Not doing code reviews)
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Mute when clicked on sound button in ChromeOS media player. - Add a sound mute icon and swap between sound high and mute icon based on volume change; - Change sound button click to toggle volume mute; - Show volume control when mouse over sound button and hide it when mouse leaves; - Call volumeChange after we setupPlaybackControls so that volume slider's value syncs with media element's volume; - Removed "controlbutton" class from "volume" element because it is really a control button and "controlbutton" style sets its hight to 30px; BUG=chromium-os:3148 TEST=Verify click on sound button mute/unmute audio and volume slider shows up when mouse over sound button. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49331

Patch Set 1 #

Total comments: 10

Patch Set 2 : address arv's comments #

Total comments: 4

Patch Set 3 : for arv's comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -36 lines) Patch
A chrome/app/theme/mediaplayer_vol_mute.png View Binary file 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/mediaplayer.html View 1 2 20 chunks +83 lines, -35 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
xiyuan
10 years, 6 months ago (2010-06-09 18:23:43 UTC) #1
arv (Not doing code reviews)
http://codereview.chromium.org/2722006/diff/1/4 File chrome/browser/resources/mediaplayer.html (right): http://codereview.chromium.org/2722006/diff/1/4#newcode120 chrome/browser/resources/mediaplayer.html:120: background-repeat: no-repeat; Can you refactor so you don't have ...
10 years, 6 months ago (2010-06-09 18:56:12 UTC) #2
xiyuan
http://codereview.chromium.org/2722006/diff/1/4 File chrome/browser/resources/mediaplayer.html (right): http://codereview.chromium.org/2722006/diff/1/4#newcode120 chrome/browser/resources/mediaplayer.html:120: background-repeat: no-repeat; On 2010/06/09 18:56:13, arv wrote: > Can ...
10 years, 6 months ago (2010-06-09 19:12:27 UTC) #3
arv (Not doing code reviews)
lgtm but wait for David since he is the owner of this code. http://codereview.chromium.org/2722006/diff/6001/7003 File ...
10 years, 6 months ago (2010-06-09 19:17:31 UTC) #4
dhg
LGTM
10 years, 6 months ago (2010-06-09 19:44:54 UTC) #5
xiyuan
10 years, 6 months ago (2010-06-09 22:13:55 UTC) #6
http://codereview.chromium.org/2722006/diff/6001/7003
File chrome/browser/resources/mediaplayer.html (right):

http://codereview.chromium.org/2722006/diff/6001/7003#newcode463
chrome/browser/resources/mediaplayer.html:463: var new_icon = element.volume > 0
? 'soundiconhigh' : 'soundiconmuted';
On 2010/06/09 19:17:31, arv wrote:
> underscore

Done.

http://codereview.chromium.org/2722006/diff/6001/7003#newcode589
chrome/browser/resources/mediaplayer.html:589: volume.onmouseover = showVolume;
On 2010/06/09 19:17:31, arv wrote:
> This could have been done using CSS
The reason not using ":hover" etc to do this is because we also need to
show/hide volume on mouse over/out on "soundbutton" element.

Powered by Google App Engine
This is Rietveld 408576698