diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 19:30:21 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 19:30:21 +0000 |
commit | eda2b5a29df212809fb3ee5a8e8c42017b635f1c (patch) | |
tree | e0b9116beca023c3400cee5e28baa7114dee9cd2 /chrome/common | |
parent | 01804b55e214f78aec2618b811a5ffa7079104dd (diff) | |
download | chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.zip chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.tar.gz chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.tar.bz2 |
Add Automatic spell correction support in Chrome.
Issue=7624
Review URL: http://codereview.chromium.org/42608
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 3 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 3954f77..45e4e97 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -428,9 +428,11 @@ const wchar_t kWebWorkerShareProcesses[] = L"web-worker-share-processes"; // Enables the bookmark menu. const wchar_t kBookmarkMenu[] = L"bookmark-menu"; +// Enables auto spell correction. +const wchar_t kAutoSpellCorrect[] = L"auto-spell-correct"; + // Enables StatsTable, logging statistics to a global named shared memory table. const wchar_t kEnableStatsTable[] = L"enable-stats-table"; - // Enables the Omnibox2 popup and functionality. const wchar_t kEnableOmnibox2[] = L"enable-omnibox2"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index f5228121..ef3f796 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -162,8 +162,11 @@ extern const wchar_t kWebWorkerProcessPerCore[]; extern const wchar_t kWebWorkerShareProcesses[]; extern const wchar_t kBookmarkMenu[]; + extern const wchar_t kEnableStatsTable[]; +extern const wchar_t kAutoSpellCorrect[]; + extern const wchar_t kEnableOmnibox2[]; extern const wchar_t kDisableAudio[]; diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 1966f9e..90882c1 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -815,6 +815,10 @@ IPC_BEGIN_MESSAGES(ViewHost) int /* misspell location */, int /* misspell length */) + IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetAutoCorrectWord, + std::wstring /* word to check */, + std::wstring /* autocorrected word */) + // Initiate a download based on user actions like 'ALT+click'. IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, GURL /* url */, |