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

Unified Diff: Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 177423011: Remove MediaControlVolumeSliderElement::m_clearMutedOnUserInteraction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/shadow/MediaControlElementTypes.h ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControlElementTypes.cpp
diff --git a/Source/core/html/shadow/MediaControlElementTypes.cpp b/Source/core/html/shadow/MediaControlElementTypes.cpp
index f8e0d5f2df0f0ef76c0bba4f4d8c2c419043371a..658d4896caa647b44dc71dc76710ef4ff93276d5 100644
--- a/Source/core/html/shadow/MediaControlElementTypes.cpp
+++ b/Source/core/html/shadow/MediaControlElementTypes.cpp
@@ -157,7 +157,6 @@ void MediaControlMuteButtonElement::updateDisplayType()
MediaControlVolumeSliderElement::MediaControlVolumeSliderElement(Document& document)
: MediaControlInputElement(document, MediaVolumeSlider)
- , m_clearMutedOnUserInteraction(false)
{
}
@@ -176,10 +175,8 @@ void MediaControlVolumeSliderElement::defaultEventHandler(Event* event)
return;
double volume = value().toDouble();
- if (volume != mediaController()->volume())
- mediaController()->setVolume(volume, ASSERT_NO_EXCEPTION);
- if (m_clearMutedOnUserInteraction)
- mediaController()->setMuted(false);
+ mediaController()->setVolume(volume, ASSERT_NO_EXCEPTION);
+ mediaController()->setMuted(false);
}
bool MediaControlVolumeSliderElement::willRespondToMouseMoveEvents()
@@ -204,9 +201,4 @@ void MediaControlVolumeSliderElement::setVolume(double volume)
setValue(String::number(volume));
}
-void MediaControlVolumeSliderElement::setClearMutedOnUserInteraction(bool clearMute)
-{
- m_clearMutedOnUserInteraction = clearMute;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/html/shadow/MediaControlElementTypes.h ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698