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

Unified Diff: Source/core/frame/Settings.cpp

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/frame/Settings.cpp
diff --git a/Source/core/frame/Settings.cpp b/Source/core/frame/Settings.cpp
index f6a2781b36a86509f34490b3c69742480ae26f3c..6c85bb100ad9ab861a88043efdc83d1ffa3b5dea 100644
--- a/Source/core/frame/Settings.cpp
+++ b/Source/core/frame/Settings.cpp
@@ -72,6 +72,7 @@ Settings::Settings()
#else
, m_textAutosizingEnabled(false)
#endif
+ , m_textTracksEnabled(false)
SETTINGS_INITIALIZER_LIST
{
}
@@ -132,4 +133,12 @@ void Settings::setOpenGLMultisamplingEnabled(bool flag)
invalidate(SettingsDelegate::MultisamplingChange);
}
+void Settings::setTextTracksEnabled(bool enabled)
+{
+ if (m_textTracksEnabled == enabled)
+ return;
+ m_textTracksEnabled = enabled;
+ invalidate(SettingsDelegate::TextTracksVisibilityChange);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698