| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MediaControlFullscreenButtonElement_h |
| 6 #define MediaControlFullscreenButtonElement_h |
| 7 |
| 8 #include "core/html/shadow/MediaControlElementTypes.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class Event; |
| 13 class MediaControlsImpl; |
| 14 |
| 15 class MediaControlFullscreenButtonElement final |
| 16 : public MediaControlInputElement { |
| 17 public: |
| 18 explicit MediaControlFullscreenButtonElement(MediaControlsImpl&); |
| 19 |
| 20 // TODO(mlamouri): this should be changed to UpdateDisplayType(). |
| 21 void SetIsFullscreen(bool); |
| 22 |
| 23 // MediaControlInputElement overrides. |
| 24 bool WillRespondToMouseClickEvents() override; |
| 25 WebLocalizedString::Name GetOverflowStringName() override; |
| 26 bool HasOverflowButton() override; |
| 27 |
| 28 private: |
| 29 void DefaultEventHandler(Event*) override; |
| 30 void RecordClickMetrics(); |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // MediaControlFullscreenButtonElement_h |
| OLD | NEW |