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 16 matching lines...) Expand all Loading... |
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 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
| 37 class TextTrack; |
| 38 |
37 // ---------------------------- | 39 // ---------------------------- |
38 | 40 |
39 class MediaControlPanelElement final : public MediaControlDivElement { | 41 class MediaControlPanelElement final : public MediaControlDivElement { |
40 public: | 42 public: |
41 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls
&); | 43 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls
&); |
42 | 44 |
43 void setIsDisplayed(bool); | 45 void setIsDisplayed(bool); |
44 | 46 |
45 void makeOpaque(); | 47 void makeOpaque(); |
46 void makeTransparent(); | 48 void makeTransparent(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual void updateDisplayType() override; | 141 virtual void updateDisplayType() override; |
140 | 142 |
141 private: | 143 private: |
142 explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&); | 144 explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&); |
143 | 145 |
144 virtual void defaultEventHandler(Event*) override; | 146 virtual void defaultEventHandler(Event*) override; |
145 }; | 147 }; |
146 | 148 |
147 // ---------------------------- | 149 // ---------------------------- |
148 | 150 |
| 151 class MediaControlTextTrackListContainerElement final : public MediaControlDivEl
ement { |
| 152 public: |
| 153 static PassRefPtrWillBeRawPtr<MediaControlTextTrackListContainerElement> cre
ate(MediaControls&); |
| 154 |
| 155 private: |
| 156 explicit MediaControlTextTrackListContainerElement(MediaControls&); |
| 157 }; |
| 158 |
| 159 // ---------------------------- |
| 160 |
| 161 class MediaControlTextTrackListElement final : public MediaControlDivElement { |
| 162 public: |
| 163 static PassRefPtrWillBeRawPtr<MediaControlTextTrackListElement> create(Media
Controls&); |
| 164 |
| 165 virtual bool willRespondToMouseClickEvents() override { return true; } |
| 166 |
| 167 void refreshTextTrackListMenu(); |
| 168 |
| 169 private: |
| 170 explicit MediaControlTextTrackListElement(MediaControls&); |
| 171 |
| 172 virtual void defaultEventHandler(Event*) override; |
| 173 |
| 174 String getTextTrackLabel(TextTrack*); |
| 175 |
| 176 RefPtrWillBeRawPtr<Element> createTextTrackListItem(const String&, int, bool
); |
| 177 |
| 178 void showTextTrackAtIndex(unsigned); |
| 179 }; |
| 180 |
| 181 // ---------------------------- |
| 182 |
149 class MediaControlTimelineElement final : public MediaControlInputElement { | 183 class MediaControlTimelineElement final : public MediaControlInputElement { |
150 public: | 184 public: |
151 static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaContr
ols&); | 185 static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaContr
ols&); |
152 | 186 |
153 virtual bool willRespondToMouseClickEvents() override; | 187 virtual bool willRespondToMouseClickEvents() override; |
154 | 188 |
155 // FIXME: An "earliest possible position" will be needed once that concept | 189 // FIXME: An "earliest possible position" will be needed once that concept |
156 // is supported by HTMLMediaElement, see https://crbug.com/137275 | 190 // is supported by HTMLMediaElement, see https://crbug.com/137275 |
157 void setPosition(double); | 191 void setPosition(double); |
158 void setDuration(double); | 192 void setDuration(double); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 public: | 267 public: |
234 static PassRefPtrWillBeRawPtr<MediaControlCurrentTimeDisplayElement> create(
MediaControls&); | 268 static PassRefPtrWillBeRawPtr<MediaControlCurrentTimeDisplayElement> create(
MediaControls&); |
235 | 269 |
236 private: | 270 private: |
237 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); | 271 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
238 }; | 272 }; |
239 | 273 |
240 } // namespace blink | 274 } // namespace blink |
241 | 275 |
242 #endif // MediaControlElements_h | 276 #endif // MediaControlElements_h |
OLD | NEW |