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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h

Issue 2456993003: Improve caption button behavior for video player. (Closed)
Patch Set: Addresss feedback Created 4 years, 1 month 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
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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" 182 // Returns the label for the track when a valid track is passed in and "Off"
183 // when the parameter is null. 183 // when the parameter is null.
184 String getTextTrackLabel(TextTrack*); 184 String getTextTrackLabel(TextTrack*);
185 // Creates the track element in the list when a valid track is passed in and 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. 186 // the "Off" item when the parameter is null.
187 Element* createTextTrackListItem(TextTrack*); 187 Element* createTextTrackListItem(TextTrack*);
188
189 void showTextTrackAtIndex(unsigned);
190 void disableShowingTextTracks();
191 }; 188 };
192 189
193 // ---------------------------- 190 // ----------------------------
194 // Represents the overflow menu which is displayed when the width of the media 191 // Represents the overflow menu which is displayed when the width of the media
195 // player is small enough that at least two buttons are no longer visible. 192 // player is small enough that at least two buttons are no longer visible.
196 class MediaControlOverflowMenuButtonElement final 193 class MediaControlOverflowMenuButtonElement final
197 : public MediaControlInputElement { 194 : public MediaControlInputElement {
198 public: 195 public:
199 static MediaControlOverflowMenuButtonElement* create(MediaControls&); 196 static MediaControlOverflowMenuButtonElement* create(MediaControls&);
200 197
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 public: 363 public:
367 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); 364 static MediaControlCurrentTimeDisplayElement* create(MediaControls&);
368 365
369 private: 366 private:
370 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); 367 explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
371 }; 368 };
372 369
373 } // namespace blink 370 } // namespace blink
374 371
375 #endif // MediaControlElements_h 372 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698