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

Unified Diff: chrome/renderer/render_thread.cc

Issue 395007: Move Mac to using renderer spellchecker. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: ui test fix Created 11 years, 1 month 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
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 32394)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -53,9 +53,7 @@
#include "chrome/renderer/renderer_webkitclient_impl.h"
#include "chrome/renderer/renderer_web_database_observer.h"
#include "chrome/renderer/socket_stream_dispatcher.h"
-#if defined(SPELLCHECKER_IN_RENDERER)
#include "chrome/renderer/spellchecker/spellcheck.h"
-#endif
#include "chrome/renderer/user_script_slave.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_platform_file.h"
@@ -158,9 +156,7 @@
AddFilter(devtools_agent_filter_.get());
db_message_filter_ = new DBMessageFilter();
AddFilter(db_message_filter_.get());
-#if defined(SPELLCHECKER_IN_RENDERER)
spellchecker_.reset(new SpellCheck());
-#endif
#if defined(OS_POSIX)
suicide_on_channel_error_filter_ = new SuicideOnChannelErrorFilter;
@@ -341,14 +337,12 @@
IPC_MESSAGE_HANDLER(ViewMsg_SetIPCLoggingEnabled,
OnSetIPCLoggingEnabled)
#endif
-#if defined(SPELLCHECKER_IN_RENDERER)
IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_Init,
OnInitSpellChecker)
IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_WordAdded,
OnSpellCheckWordAdded)
IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
OnSpellCheckEnableAutoSpellCorrect)
-#endif
IPC_END_MESSAGE_MAP()
}
@@ -455,12 +449,6 @@
Send(new ViewHostMsg_SetCacheMode(enabled));
}
-#if defined(SPELLCHECKER_IN_RENDERER)
-void RenderThread::RequestSpellCheckDictionary() {
- Send(new ViewHostMsg_SpellChecker_RequestDictionary);
-}
-#endif
-
static void* CreateHistogram(
const char *name, int min, int max, size_t buckets) {
Histogram* histogram = new Histogram(name, min, max, buckets);
@@ -614,9 +602,7 @@
}
void RenderThread::OnPurgeMemory() {
-#if defined(SPELLCHECKER_IN_RENDERER)
spellchecker_.reset(new SpellCheck());
-#endif
EnsureWebKitInitialized();
@@ -659,7 +645,6 @@
plugin_refresh_allowed_ = true;
}
-#if defined(SPELLCHECKER_IN_RENDERER)
void RenderThread::OnInitSpellChecker(
IPC::PlatformFileForTransit bdict_file,
const std::vector<std::string>& custom_words,
@@ -677,4 +662,3 @@
void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) {
spellchecker_->EnableAutoSpellCorrect(enable);
}
-#endif
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698