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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 void setVisible(bool); | 173 void setVisible(bool); |
174 | 174 |
175 private: | 175 private: |
176 explicit MediaControlTextTrackListElement(MediaControls&); | 176 explicit MediaControlTextTrackListElement(MediaControls&); |
177 | 177 |
178 void defaultEventHandler(Event*) override; | 178 void defaultEventHandler(Event*) override; |
179 | 179 |
180 void refreshTextTrackListMenu(); | 180 void refreshTextTrackListMenu(); |
181 | 181 |
182 // Returns the label for the track when a valid track is passed in and "Off" w
hen the parameter is null. | 182 // Returns the label for the track when a valid track is passed in and "Off" |
| 183 // when the parameter is null. |
183 String getTextTrackLabel(TextTrack*); | 184 String getTextTrackLabel(TextTrack*); |
184 // Creates the track element in the list when a valid track is passed in and t
he "Off" item when the parameter is null. | 185 // Creates the track element in the list when a valid track is passed in and |
| 186 // the "Off" item when the parameter is null. |
185 Element* createTextTrackListItem(TextTrack*); | 187 Element* createTextTrackListItem(TextTrack*); |
186 | 188 |
187 void showTextTrackAtIndex(unsigned); | 189 void showTextTrackAtIndex(unsigned); |
188 void disableShowingTextTracks(); | 190 void disableShowingTextTracks(); |
189 }; | 191 }; |
190 | 192 |
191 // ---------------------------- | 193 // ---------------------------- |
192 // Represents the overflow menu which is displayed when the width of the media | 194 // Represents the overflow menu which is displayed when the width of the media |
193 // player is small enough that at least two buttons are no longer visible. | 195 // player is small enough that at least two buttons are no longer visible. |
194 class MediaControlOverflowMenuButtonElement final | 196 class MediaControlOverflowMenuButtonElement final |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 public: | 366 public: |
365 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); | 367 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); |
366 | 368 |
367 private: | 369 private: |
368 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); | 370 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
369 }; | 371 }; |
370 | 372 |
371 } // namespace blink | 373 } // namespace blink |
372 | 374 |
373 #endif // MediaControlElements_h | 375 #endif // MediaControlElements_h |
OLD | NEW |