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

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

Issue 2810173003: Media Controls: move all MediaControlDivElement sub-classes to modules/. (Closed)
Patch Set: fix typo Created 3 years, 8 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698