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

Unified Diff: Source/core/html/track/TextTrackKindUserPreference.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/track/AutomaticTrackSelection.cpp ('k') | Source/core/html/track/TextTrackList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackKindUserPreference.h
diff --git a/Source/core/html/track/TextTrackKindUserPreference.h b/Source/core/html/track/TextTrackKindUserPreference.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff927c7a7df6e0003c7ef8de4014de48277bcd1f
--- /dev/null
+++ b/Source/core/html/track/TextTrackKindUserPreference.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TextTrackKindUserPreference_h
+#define TextTrackKindUserPreference_h
+
+namespace blink {
+
+// Defines user preference for text track kind.
+enum class TextTrackKindUserPreference {
+ // Display only tracks marked as default.
+ Default,
+ // If available, display captions track in preferred language, else display subtitles.
+ Captions,
+ // If available, display subtitles track in preferred language, else display captions.
+ Subtitles
+};
+
+} // namespace blink
+
+#endif // TextTrackKindUserPreference_h
« no previous file with comments | « Source/core/html/track/AutomaticTrackSelection.cpp ('k') | Source/core/html/track/TextTrackList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698