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

Unified Diff: public/web/WebSettings.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 Philip's comments 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/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSettings.h
diff --git a/public/web/WebSettings.h b/public/web/WebSettings.h
index ec83a8f583253a86f0e1c6b130ca04078a812d18..ac3d3dbc42d8893a0519eab04e57df2e45fcd358 100644
--- a/public/web/WebSettings.h
+++ b/public/web/WebSettings.h
@@ -97,6 +97,16 @@ public:
Direction
};
+ // Defines user preference for text track kind.
+ enum class TextTrackKindUserPreference {
+ // Display only tracks marked as default
+ Default,
+ // Display caption tracks if available and if not display subtitles in preferred language
philipj_slow 2015/07/09 22:39:35 Copy the documentation from the other place here.
+ Captions,
+ // Display subtitle tracks if available
+ Subtitles
+ };
+
// Sets value of a setting by its string identifier from Settings.in and
// string representation of value. An enum's string representation is the
// string representation of the integer value of the enum.
@@ -233,6 +243,7 @@ public:
virtual void setTextAreasAreResizable(bool) = 0;
virtual void setTextAutosizingEnabled(bool) = 0;
virtual void setAccessibilityFontScaleFactor(float) = 0;
+ virtual void setTextTrackKindUserPreference(TextTrackKindUserPreference) = 0;
virtual void setTextTrackBackgroundColor(const WebString&) = 0;
virtual void setTextTrackFontFamily(const WebString&) = 0;
virtual void setTextTrackFontStyle(const WebString&) = 0;
« no previous file with comments | « Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698