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

Unified Diff: third_party/WebKit/Source/modules/media_controls/elements/MediaControlVolumeSliderElement.h

Issue 2830653002: Media Controls: move volume slider to modules/. (Closed)
Patch Set: _ Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/media_controls/elements/MediaControlVolumeSliderElement.h
diff --git a/third_party/WebKit/Source/modules/media_controls/elements/MediaControlVolumeSliderElement.h b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlVolumeSliderElement.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bb2b658c895001bffb37081e38a2b508caee8d5
--- /dev/null
+++ b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlVolumeSliderElement.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MediaControlVolumeSliderElement_h
+#define MediaControlVolumeSliderElement_h
+
+#include "core/html/shadow/MediaControlElementTypes.h"
+
+namespace blink {
+
+class Event;
+class MediaControlsImpl;
+
+class MediaControlVolumeSliderElement final : public MediaControlInputElement {
+ public:
+ explicit MediaControlVolumeSliderElement(MediaControlsImpl&);
+
+ // TODO: who calls this?
+ void SetVolume(double);
+
+ // MediaControlInputElement overrides.
+ bool WillRespondToMouseMoveEvents() override;
+ bool WillRespondToMouseClickEvents() override;
+
+ private:
+ void DefaultEventHandler(Event*) override;
+ bool KeepEventInNode(Event*) override;
+};
+
+} // namespace blink
+
+#endif // MediaControlVolumeSliderElement_h

Powered by Google App Engine
This is Rietveld 408576698