From 4715830641d968f28b1742f3bc883e73c03e98dd Mon Sep 17 00:00:00 2001 From: "satish@chromium.org" Date: Tue, 16 Nov 2010 14:10:22 +0000 Subject: 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 --- chrome/common/chrome_switches.cc | 3 +++ chrome/common/chrome_switches.h | 1 + chrome/common/render_messages_internal.h | 4 ++++ 3 files changed, 8 insertions(+) (limited to 'chrome/common') 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) -- cgit v1.1