Index: public/web/WebSettings.h |
diff --git a/public/web/WebSettings.h b/public/web/WebSettings.h |
index 3eeb7a88a7d50f27bf0e31a47b19092cc7bb67d3..cbf8f4695e6c1eedb966aa5bf798adf25cc3c794 100644 |
--- a/public/web/WebSettings.h |
+++ b/public/web/WebSettings.h |
@@ -105,6 +105,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 |
+ 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. |
@@ -239,6 +249,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; |