OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... | |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef MediaControlElements_h | 30 #ifndef MediaControlElements_h |
31 #define MediaControlElements_h | 31 #define MediaControlElements_h |
32 | 32 |
33 #include "core/html/shadow/MediaControlElementTypes.h" | 33 #include "core/html/shadow/MediaControlElementTypes.h" |
34 #include "core/html/track/TextTrack.h" | |
fs
2015/04/14 12:34:57
Could be a forward declaration.
srivats
2015/04/16 23:37:20
Done.
| |
34 | 35 |
35 namespace blink { | 36 namespace blink { |
36 | 37 |
37 // ---------------------------- | 38 // ---------------------------- |
38 | 39 |
39 class MediaControlPanelElement final : public MediaControlDivElement { | 40 class MediaControlPanelElement final : public MediaControlDivElement { |
40 public: | 41 public: |
41 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls &); | 42 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls &); |
42 | 43 |
43 void setIsDisplayed(bool); | 44 void setIsDisplayed(bool); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 virtual void updateDisplayType() override; | 140 virtual void updateDisplayType() override; |
140 | 141 |
141 private: | 142 private: |
142 explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&); | 143 explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&); |
143 | 144 |
144 virtual void defaultEventHandler(Event*) override; | 145 virtual void defaultEventHandler(Event*) override; |
145 }; | 146 }; |
146 | 147 |
147 // ---------------------------- | 148 // ---------------------------- |
148 | 149 |
150 class MediaControlClosedCaptionsTrackListContainerElement final : public MediaCo ntrolDivElement { | |
fs
2015/04/14 12:34:57
This type does not add anything AFAICS, so why do
srivats
2015/04/16 23:37:20
It's the container that holds the track list. I'll
| |
151 public: | |
152 static PassRefPtrWillBeRawPtr<MediaControlClosedCaptionsTrackListContainerEl ement> create(MediaControls&); | |
153 | |
154 private: | |
155 explicit MediaControlClosedCaptionsTrackListContainerElement(MediaControls&) ; | |
156 }; | |
157 | |
158 // ---------------------------- | |
159 | |
160 class MediaControlClosedCaptionsTrackListElement final : public MediaControlDivE lement { | |
161 public: | |
162 static PassRefPtrWillBeRawPtr<MediaControlClosedCaptionsTrackListElement> cr eate(MediaControls&); | |
163 | |
164 virtual bool willRespondToMouseClickEvents() override { return true; } | |
165 | |
166 void refreshTextTrackListMenu(); | |
167 | |
168 private: | |
169 explicit MediaControlClosedCaptionsTrackListElement(MediaControls&); | |
170 | |
171 virtual void defaultEventHandler(Event*) override; | |
172 | |
173 String getTextTrackLabel(TextTrack*); | |
174 | |
175 RefPtrWillBeRawPtr<Element> createTextTrackListItem(const String&, int, bool ); | |
176 }; | |
177 | |
178 // ---------------------------- | |
179 | |
149 class MediaControlTimelineElement final : public MediaControlInputElement { | 180 class MediaControlTimelineElement final : public MediaControlInputElement { |
150 public: | 181 public: |
151 static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaContr ols&); | 182 static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaContr ols&); |
152 | 183 |
153 virtual bool willRespondToMouseClickEvents() override; | 184 virtual bool willRespondToMouseClickEvents() override; |
154 | 185 |
155 // FIXME: An "earliest possible position" will be needed once that concept | 186 // FIXME: An "earliest possible position" will be needed once that concept |
156 // is supported by HTMLMediaElement, see https://crbug.com/137275 | 187 // is supported by HTMLMediaElement, see https://crbug.com/137275 |
157 void setPosition(double); | 188 void setPosition(double); |
158 void setDuration(double); | 189 void setDuration(double); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 public: | 264 public: |
234 static PassRefPtrWillBeRawPtr<MediaControlCurrentTimeDisplayElement> create( MediaControls&); | 265 static PassRefPtrWillBeRawPtr<MediaControlCurrentTimeDisplayElement> create( MediaControls&); |
235 | 266 |
236 private: | 267 private: |
237 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); | 268 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
238 }; | 269 }; |
239 | 270 |
240 } // namespace blink | 271 } // namespace blink |
241 | 272 |
242 #endif // MediaControlElements_h | 273 #endif // MediaControlElements_h |
OLD | NEW |