Chromium Code Reviews| 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&); |