Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h |
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h |
| index 9afa7f1aafd2eecdc400f0925814188389463e8b..6757a1d2f363a66b37ec948afb9206058f7748f8 100644 |
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h |
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h |
| @@ -34,6 +34,8 @@ |
| namespace blink { |
| +class TextTrack; |
| + |
| // ---------------------------- |
| class MediaControlPanelElement final : public MediaControlDivElement { |
| @@ -146,6 +148,33 @@ private: |
| // ---------------------------- |
| +class MediaControlTextTrackListElement final : public MediaControlDivElement { |
| +public: |
| + static MediaControlTextTrackListElement* create(MediaControls&); |
| + |
| + bool willRespondToMouseClickEvents() override { return true; } |
| + |
| + void setVisible(bool); |
| + |
| +private: |
| + explicit MediaControlTextTrackListElement(MediaControls&); |
| + |
| + void defaultEventHandler(Event*) override; |
| + |
| + void refreshTextTrackListMenu(); |
| + |
| + bool hasDuplicateLabel(const TextTrack& currentTrack); |
|
philipj_slow
2016/04/20 15:27:22
This can be in the .cpp file only, in an anonymous
|
| + // Returns the label for the track when a valid track is passed in and "Off" when the parameter is null. |
| + String getTextTrackLabel(TextTrack*); |
| + // Creates the track element in the list when a valid track is passed in and the "Off" item when the parameter is null. |
| + Element* createTextTrackListItem(TextTrack*); |
| + |
| + void showTextTrackAtIndex(unsigned); |
| + void disableShowingTextTracks(); |
| +}; |
| + |
| +// ---------------------------- |
| + |
| class MediaControlTimelineElement final : public MediaControlInputElement { |
| public: |
| static MediaControlTimelineElement* create(MediaControls&); |