| 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 MediaControlPanelElement_h |
| 6 #define MediaControlPanelElement_h |
| 7 |
| 8 #include "core/html/shadow/MediaControlElementTypes.h" |
| 9 #include "platform/Timer.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class Event; |
| 14 class MediaControlsImpl; |
| 15 class TimerBase; |
| 16 |
| 17 class MediaControlPanelElement final : public MediaControlDivElement { |
| 18 public: |
| 19 explicit MediaControlPanelElement(MediaControlsImpl&); |
| 20 |
| 21 public: |
| 22 // Methods called by `MediaContrlsImpl`. |
| 23 void SetIsDisplayed(bool); |
| 24 bool IsOpaque() const; |
| 25 void MakeOpaque(); |
| 26 void MakeTransparent(); |
| 27 |
| 28 private: |
| 29 void DefaultEventHandler(Event*) override; |
| 30 bool KeepEventInNode(Event*) override; |
| 31 |
| 32 void StartTimer(); |
| 33 void StopTimer(); |
| 34 void TransitionTimerFired(TimerBase*); |
| 35 void DidBecomeVisible(); |
| 36 |
| 37 bool is_displayed_ = false; |
| 38 bool opaque_ = true; |
| 39 |
| 40 TaskRunnerTimer<MediaControlPanelElement> transition_timer_; |
| 41 }; |
| 42 |
| 43 } // namespace blink |
| 44 |
| 45 #endif // MediaControlPanelElement_h |
| OLD | NEW |