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

Unified Diff: Source/core/page/RuntimeEnabledFeatures.h

Issue 14466008: Switch speech synthesis from compile-flag to runtime-flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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/page/RuntimeEnabledFeatures.h
diff --git a/Source/core/page/RuntimeEnabledFeatures.h b/Source/core/page/RuntimeEnabledFeatures.h
index 9422c8646daea9eb430cd636eb81b9c8ce5029dd..36d662396a1219afb29811152d6158bf3f6dfdc3 100644
--- a/Source/core/page/RuntimeEnabledFeatures.h
+++ b/Source/core/page/RuntimeEnabledFeatures.h
@@ -224,6 +224,9 @@ public:
static void setIMEAPIEnabled(bool isEnabled) { isIMEAPIEnabled = isEnabled; }
static bool imeAPIEnabled() { return isIMEAPIEnabled; }
+ static void setSpeechSynthesisEnabled(bool isEnabled) { isSpeechSynthesisEnabled = isEnabled; }
eseidel 2013/04/29 21:50:51 I suspect I just broke thsi part of the diff. The
+ static bool speechSynthesisEnabled() { return isSpeechSynthesisEnabled; }
+
private:
// Never instantiate.
RuntimeEnabledFeatures() { }
@@ -291,6 +294,7 @@ private:
static bool isDirectoryUploadEnabled;
static bool isExperimentalWebSocketEnabled;
static bool isIMEAPIEnabled;
+ static bool isSpeechSynthesisEnabled;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698