OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef AutomaticTrackSelection_h |
| 6 #define AutomaticTrackSelection_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class TextTrackList; |
| 13 class TrackGroup; |
| 14 |
| 15 class AutomaticTrackSelection { |
| 16 STACK_ALLOCATED(); |
| 17 public: |
| 18 struct Configuration { |
| 19 Configuration() |
| 20 : disableCurrentlyEnabledTracks(false) |
| 21 , forceEnableSubtitleOrCaptionTrack(false) { } |
| 22 |
| 23 bool disableCurrentlyEnabledTracks; |
| 24 bool forceEnableSubtitleOrCaptionTrack; |
| 25 }; |
| 26 |
| 27 AutomaticTrackSelection(const Configuration&); |
| 28 |
| 29 void perform(TextTrackList&); |
| 30 |
| 31 private: |
| 32 void performAutomaticTextTrackSelection(const TrackGroup&); |
| 33 void enableDefaultMetadataTextTracks(const TrackGroup&); |
| 34 |
| 35 const Configuration m_configuration; |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // AutomaticTrackSelection_h |
OLD | NEW |