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

Unified Diff: Source/core/html/shadow/MediaControlElements.h

Issue 1082533002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/shadow/MediaControlElements.h
diff --git a/Source/core/html/shadow/MediaControlElements.h b/Source/core/html/shadow/MediaControlElements.h
index 5f72cd0edd2f38c690290c07e01546869d60e726..b66e8b17e87c171915d5ec4661a351278200a134 100644
--- a/Source/core/html/shadow/MediaControlElements.h
+++ b/Source/core/html/shadow/MediaControlElements.h
@@ -31,6 +31,7 @@
#define MediaControlElements_h
#include "core/html/shadow/MediaControlElementTypes.h"
+#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.
namespace blink {
@@ -146,6 +147,36 @@ private:
// ----------------------------
+class MediaControlClosedCaptionsTrackListContainerElement final : public MediaControlDivElement {
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
+public:
+ static PassRefPtrWillBeRawPtr<MediaControlClosedCaptionsTrackListContainerElement> create(MediaControls&);
+
+private:
+ explicit MediaControlClosedCaptionsTrackListContainerElement(MediaControls&);
+};
+
+// ----------------------------
+
+class MediaControlClosedCaptionsTrackListElement final : public MediaControlDivElement {
+public:
+ static PassRefPtrWillBeRawPtr<MediaControlClosedCaptionsTrackListElement> create(MediaControls&);
+
+ virtual bool willRespondToMouseClickEvents() override { return true; }
+
+ void refreshTextTrackListMenu();
+
+private:
+ explicit MediaControlClosedCaptionsTrackListElement(MediaControls&);
+
+ virtual void defaultEventHandler(Event*) override;
+
+ String getTextTrackLabel(TextTrack*);
+
+ RefPtrWillBeRawPtr<Element> createTextTrackListItem(const String&, int, bool);
+};
+
+// ----------------------------
+
class MediaControlTimelineElement final : public MediaControlInputElement {
public:
static PassRefPtrWillBeRawPtr<MediaControlTimelineElement> create(MediaControls&);

Powered by Google App Engine
This is Rietveld 408576698