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

Unified Diff: Source/core/html/track/AutomaticTrackSelection.h

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed lgtm comment and rebased Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/track/AutomaticTrackSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b9f25e4f890d40edd11fc70e1152d20b19c2534a 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() const;
const Configuration m_configuration;
};
« 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