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 |