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

Unified Diff: Source/core/testing/InternalSettings.cpp

Issue 921833003: Expose APIs for text track settings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments from fs 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/InternalSettings.cpp
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp
index 28e64a38a73a9f3310190c3d48dc1a24e82e03c4..2224b0ca966fbb4d3295d5b4ec3a1ff9b56cc1fb 100644
--- a/Source/core/testing/InternalSettings.cpp
+++ b/Source/core/testing/InternalSettings.cpp
@@ -485,4 +485,53 @@ void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep
settings()->setLogDnsPrefetchAndPreconnect(enabled);
}
+void InternalSettings::setTextTrackBackgroundColor(const String& color, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackBackgroundColor(color);
+}
+
+
+void InternalSettings::setTextTrackFontFamily(const String& fontFamily, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackFontFamily(fontFamily);
+}
+
+void InternalSettings::setTextTrackFontStyle(const String& fontStyle, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackFontStyle(fontStyle);
+}
+
+void InternalSettings::setTextTrackFontVariant(const String& fontVariant, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackFontVariant(fontVariant);
+}
+
+void InternalSettings::setTextTrackTextColor(const String& color, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackTextColor(color);
+}
+
+void InternalSettings::setTextTrackTextShadow(const String& shadow, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackTextShadow(shadow);
+}
+
+void InternalSettings::setTextTrackTextSize(const String& size, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackTextSize(size);
+}
+
+void InternalSettings::setTextTrackWindowColor(const String& color, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setTextTrackWindowColor(color);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698