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..9e4d9d930926ef66c8067d85891e424ee54d7ca9 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; |
| 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&); |
| @@ -29,10 +33,13 @@ public: |
| void perform(TextTrackList&); |
| private: |
| - void performAutomaticTextTrackSelection(const TrackGroup&); |
| + RefPtrWillBeRawPtr<TextTrack> performAutomaticTextTrackSelection(const TrackGroup&); |
|
fs
2015/06/23 09:23:58
PassRef...
srivats
2015/06/24 01:40:19
Done.
|
| void enableDefaultMetadataTextTracks(const TrackGroup&); |
| + RefPtrWillBeRawPtr<TextTrack> enableTrackBasedOnUserPreference(RefPtrWillBeRawPtr<TextTrack>, |
|
fs
2015/06/23 09:23:58
Nit: PassRef... (both args.)
srivats
2015/06/24 01:40:20
Done.
|
| + RefPtrWillBeRawPtr<TextTrack>); |
| const Configuration m_configuration; |
| + RefPtrWillBeRawPtr<TextTrack> fallbackCaptionOrSubtitleTrack; |
|
fs
2015/06/23 09:23:58
Nit: m_fallback...
srivats
2015/06/24 01:40:19
Done.
|
| }; |
| } // namespace blink |