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 MediaControlElementBase_h | 5 #ifndef MediaControlElementBase_h |
6 #define MediaControlElementBase_h | 6 #define MediaControlElementBase_h |
7 | 7 |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "modules/ModulesExport.h" | |
9 #include "modules/media_controls/elements/MediaControlElementType.h" | 10 #include "modules/media_controls/elements/MediaControlElementType.h" |
10 #include "platform/heap/GarbageCollected.h" | 11 #include "platform/heap/GarbageCollected.h" |
11 #include "platform/heap/Visitor.h" | 12 #include "platform/heap/Visitor.h" |
12 #include "public/platform/WebLocalizedString.h" | 13 #include "public/platform/WebLocalizedString.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class Element; | 17 class Element; |
17 class HTMLElement; | 18 class HTMLElement; |
18 class HTMLMediaElement; | 19 class HTMLMediaElement; |
19 class MediaControlsImpl; | 20 class MediaControlsImpl; |
20 | 21 |
21 // MediaControlElementBase is the base class for all the media control elements. | 22 // MediaControlElementBase is the base class for all the media control elements. |
22 // It is sub-classed by MediaControlInputElement and MediaControlDivElement | 23 // It is sub-classed by MediaControlInputElement and MediaControlDivElement |
23 // which are then used by the final implementations. | 24 // which are then used by the final implementations. |
24 class MediaControlElementBase : public GarbageCollectedMixin { | 25 class MODULES_EXPORT MediaControlElementBase : public GarbageCollectedMixin { |
mlamouri (slow - plz ping)
2017/07/25 17:29:08
Why is this required?
| |
25 public: | 26 public: |
26 // These hold the state about whether this control should be shown if | 27 // These hold the state about whether this control should be shown if |
27 // space permits. These will also show / hide as needed. | 28 // space permits. These will also show / hide as needed. |
28 virtual void SetIsWanted(bool); | 29 virtual void SetIsWanted(bool); |
29 bool IsWanted() const; | 30 bool IsWanted() const; |
30 | 31 |
31 // Tell us whether we fit or not. This will hide / show the control as | 32 // Tell us whether we fit or not. This will hide / show the control as |
32 // needed, also. | 33 // needed, also. |
33 void SetDoesFit(bool); | 34 void SetDoesFit(bool); |
34 | 35 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 Member<MediaControlsImpl> media_controls_; | 86 Member<MediaControlsImpl> media_controls_; |
86 MediaControlElementType display_type_; | 87 MediaControlElementType display_type_; |
87 Member<HTMLElement> element_; | 88 Member<HTMLElement> element_; |
88 bool is_wanted_ : 1; | 89 bool is_wanted_ : 1; |
89 bool does_fit_ : 1; | 90 bool does_fit_ : 1; |
90 }; | 91 }; |
91 | 92 |
92 } // namespace blink | 93 } // namespace blink |
93 | 94 |
94 #endif // MediaControlElementBase_h | 95 #endif // MediaControlElementBase_h |
OLD | NEW |