RESOLVED FIXED Bug 41718
Mac OS X media controls should have a way to adjust volume incrementally
https://bugs.webkit.org/show_bug.cgi?id=41718
Summary Mac OS X media controls should have a way to adjust volume incrementally
Eric Carlson
Reported 2010-07-06 15:16:55 PDT
Media controls should have a slider to control audio volume, not just a button that toggles mute.
Attachments
proposed patch (33.15 KB, patch)
2010-07-06 16:15 PDT, Eric Carlson
mitz: review+
Eric Carlson
Comment 1 2010-07-06 15:17:16 PDT
Eric Carlson
Comment 2 2010-07-06 16:15:16 PDT
Created attachment 60661 [details] proposed patch
mitz
Comment 3 2010-07-07 14:22:17 PDT
Comment on attachment 60661 [details] proposed patch > + (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement): Add ButtonLocation > + parameter both mute buttons can be created. Missing a word there? > +audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container { > + -webkit-appearance: media-volume-slider-container; > + position: absolute; > + > + width: 22px; > + height: 114px; > +} I wonder if this can specify one of top/bottom and one of left/right. > +IntPoint RenderThemeMac::volumeSliderOffsetFromMuteButton(Node* muteButton, const IntSize& size) const > +{ > + static const int xOffset = -4; > + static const int yOffset = 5; > + > + int y = muteButton->renderBox()->offsetHeight() + yOffset - size.height(); > + FloatPoint absPoint = muteButton->renderer()->localToAbsolute(FloatPoint(muteButton->renderBox()->offsetLeft(), y), true, true); > + if (absPoint.y() < 0) > + y = muteButton->renderBox()->height(); > + return IntPoint(xOffset, y); > +} I think I know what this does but a comment wouldn’t hurt. r=me!
Eric Carlson
Comment 4 2010-07-08 13:04:37 PDT
Eric Carlson
Comment 5 2010-07-12 14:49:19 PDT
*** Bug 41980 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.