OLD | NEW |
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 MediaControlPlayButtonElement_h | 5 #ifndef MediaControlPlayButtonElement_h |
6 #define MediaControlPlayButtonElement_h | 6 #define MediaControlPlayButtonElement_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 MediaControlPlayButtonElement final : public MediaControlInputElement { | 15 class MediaControlPlayButtonElement final : public MediaControlInputElement { |
16 public: | 16 public: |
17 explicit MediaControlPlayButtonElement(MediaControlsImpl&); | 17 explicit MediaControlPlayButtonElement(MediaControlsImpl&); |
18 | 18 |
19 // MediaControlInputElement overrides. | 19 // MediaControlInputElement overrides. |
20 bool WillRespondToMouseClickEvents() override; | 20 bool WillRespondToMouseClickEvents() override; |
21 void UpdateDisplayType() override; | 21 void UpdateDisplayType() override; |
22 WebLocalizedString::Name GetOverflowStringName() override; | 22 WebLocalizedString::Name GetOverflowStringName() override; |
23 bool HasOverflowButton() override; | 23 bool HasOverflowButton() override; |
24 | 24 |
| 25 void OnMediaKeyboardEvent(Event* event) { DefaultEventHandler(event); } |
| 26 |
25 private: | 27 private: |
26 void DefaultEventHandler(Event*) override; | 28 void DefaultEventHandler(Event*) override; |
27 }; | 29 }; |
28 | 30 |
29 } // namespace blink | 31 } // namespace blink |
30 | 32 |
31 #endif // MediaControlPlayButtonElement_h | 33 #endif // MediaControlPlayButtonElement_h |
OLD | NEW |