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..06d533baeb91989b96f09385f88dec94f09d354a 100644 |
| --- a/Source/core/html/track/AutomaticTrackSelection.h |
| +++ b/Source/core/html/track/AutomaticTrackSelection.h |
| @@ -5,6 +5,7 @@ |
| #ifndef AutomaticTrackSelection_h |
| #define AutomaticTrackSelection_h |
| +#include "core/html/track/TextTrackKindUserPreference.h" |
| #include "platform/heap/Handle.h" |
| namespace blink { |
| @@ -18,10 +19,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 +34,7 @@ public: |
| private: |
| void performAutomaticTextTrackSelection(const TrackGroup&); |
| void enableDefaultMetadataTextTracks(const TrackGroup&); |
| + const AtomicString& preferredTrackKind(); |
|
philipj_slow
2015/07/09 15:34:09
I guess this can be const?
srivats
2015/07/09 21:25:37
Done.
|
| const Configuration m_configuration; |
| }; |