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

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

Issue 2700663002: Adds keyboard functionality for videos. (Closed)
Patch Set: Now calls IsSpatialNavigationEnabled() directly. Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/media_controls/elements/MediaControlTimelineElement.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaControlVolumeSliderElement_h 5 #ifndef MediaControlVolumeSliderElement_h
6 #define MediaControlVolumeSliderElement_h 6 #define MediaControlVolumeSliderElement_h
7 7
8 #include "core/html/shadow/MediaControlElementTypes.h" 8 #include "core/html/shadow/MediaControlElementTypes.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Event; 12 class Event;
13 class MediaControlsImpl; 13 class MediaControlsImpl;
14 14
15 class MediaControlVolumeSliderElement final : public MediaControlInputElement { 15 class MediaControlVolumeSliderElement final : public MediaControlInputElement {
16 public: 16 public:
17 explicit MediaControlVolumeSliderElement(MediaControlsImpl&); 17 explicit MediaControlVolumeSliderElement(MediaControlsImpl&);
18 18
19 // TODO: who calls this? 19 // TODO: who calls this?
20 void SetVolume(double); 20 void SetVolume(double);
21 21
22 // MediaControlInputElement overrides. 22 // MediaControlInputElement overrides.
23 bool WillRespondToMouseMoveEvents() override; 23 bool WillRespondToMouseMoveEvents() override;
24 bool WillRespondToMouseClickEvents() override; 24 bool WillRespondToMouseClickEvents() override;
25 25
26 void OnMediaKeyboardEvent(Event* event) { DefaultEventHandler(event); }
27
26 private: 28 private:
27 void DefaultEventHandler(Event*) override; 29 void DefaultEventHandler(Event*) override;
28 bool KeepEventInNode(Event*) override; 30 bool KeepEventInNode(Event*) override;
29 }; 31 };
30 32
31 } // namespace blink 33 } // namespace blink
32 34
33 #endif // MediaControlVolumeSliderElement_h 35 #endif // MediaControlVolumeSliderElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/media_controls/elements/MediaControlTimelineElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698