diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 14:10:22 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 14:10:22 +0000 |
commit | 4715830641d968f28b1742f3bc883e73c03e98dd (patch) | |
tree | ffa13d966526b59f83dc18cee02c4a0460cfc1fe /chrome/common | |
parent | 31614e47185cc042aea09ea2c77cc4900e6bfe6c (diff) | |
download | chromium_src-4715830641d968f28b1742f3bc883e73c03e98dd.zip chromium_src-4715830641d968f28b1742f3bc883e73c03e98dd.tar.gz chromium_src-4715830641d968f28b1742f3bc883e73c03e98dd.tar.bz2 |
Add command line switch to enable speech input and disable for beta/stable channels.
The browser process now determines if the API should be enabled and sets the
'speech input enabled' flag in the render thread as part of the initialization routine.
BUG=61677
TEST=none
Review URL: http://codereview.chromium.org/4644004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index f65f86a..00b413f 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -507,6 +507,9 @@ const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; // Enables 0-RTT HTTPS handshakes. const char kEnableSnapStart[] = "enable-snap-start"; +// Enables speech input. +const char kEnableSpeechInput[] = "enable-speech-input"; + // Enables StatsTable, logging statistics to a global named shared memory table. const char kEnableStatsTable[] = "enable-stats-table"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index cbcebe7..f9f5028 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -153,6 +153,7 @@ extern const char kEnableRemoting[]; extern const char kEnableResourceContentSettings[]; extern const char kEnableSearchProviderApiV2[]; extern const char kEnableSnapStart[]; +extern const char kEnableSpeechInput[]; extern const char kEnableStatsTable[]; extern const char kEnableSync[]; extern const char kEnableSyncAutofill[]; diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index bcc512a82..dd6bff4 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1125,6 +1125,10 @@ IPC_BEGIN_MESSAGES(View) IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, int /* selected index, -1 means no selection */) + // Indicate whether speech input API is enabled or not. + IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled, + bool /* enabled */) + IPC_END_MESSAGES(View) |