Chromium Code Reviews| Index: Source/core/html/track/AutomaticTrackSelection.h |
| diff --git a/Source/core/html/track/AutomaticTrackSelection.h b/Source/core/html/track/AutomaticTrackSelection.h |
| index 5572d0f99988a9f08302ebce7f033a2b1a76e0fa..d9297c9de654921b637ca9993e2d569815f3ed96 100644 |
| --- a/Source/core/html/track/AutomaticTrackSelection.h |
| +++ b/Source/core/html/track/AutomaticTrackSelection.h |
| @@ -5,10 +5,12 @@ |
| #ifndef AutomaticTrackSelection_h |
| #define AutomaticTrackSelection_h |
| +#include "core/html/track/TextTrackKindUserPreference.h" |
| #include "platform/heap/Handle.h" |
| namespace blink { |
| +class TextTrack; |
|
fs
2015/07/07 08:22:05
Nit: Not needed (in the header.)
srivats
2015/07/07 18:44:49
Done.
|
| class TextTrackList; |
| class TrackGroup; |
| @@ -18,10 +20,12 @@ public: |
| struct Configuration { |
| Configuration() |
| : disableCurrentlyEnabledTracks(false) |
| - , forceEnableSubtitleOrCaptionTrack(false) { } |
| + , forceEnableSubtitleOrCaptionTrack(false) |
| + , textTrackKindUserPreference(TextTrackKindUserPreference::Default) { } |
| bool disableCurrentlyEnabledTracks; |
| bool forceEnableSubtitleOrCaptionTrack; |
| + TextTrackKindUserPreference textTrackKindUserPreference; |
| }; |
| AutomaticTrackSelection(const Configuration&); |
| @@ -31,6 +35,7 @@ public: |
| private: |
| void performAutomaticTextTrackSelection(const TrackGroup&); |
| void enableDefaultMetadataTextTracks(const TrackGroup&); |
| + const AtomicString& preferredTrackKind(); |
| const Configuration m_configuration; |
| }; |