Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: Source/core/html/track/AutomaticTrackSelection.h

Issue 868113005: Move automatic text track selection code to AutomaticTrackSelection helper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass TextTrackList as parameter instead. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/track/AutomaticTrackSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698