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

Unified Diff: chrome/browser/renderer_host/render_message_filter.cc

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Caught up some more missings. I'm sorry for the distraction... Created 9 years, 10 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: chrome/browser/renderer_host/render_message_filter.cc
diff --git a/chrome/browser/renderer_host/render_message_filter.cc b/chrome/browser/renderer_host/render_message_filter.cc
index 4a1ba2f1377f9c79f843921d2c93de49d1b1caf4..daceced25fda4b7cfa9db291035e57f0482882f7 100644
--- a/chrome/browser/renderer_host/render_message_filter.cc
+++ b/chrome/browser/renderer_host/render_message_filter.cc
@@ -316,6 +316,8 @@ bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message,
OnPlatformCheckSpelling)
IPC_MESSAGE_HANDLER(ViewHostMsg_SpellChecker_PlatformFillSuggestionList,
OnPlatformFillSuggestionList)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SpellChecker_PlatformRequestTextCheck,
+ OnPlatformRequestTextCheck)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_GetDocumentTag,
OnGetDocumentTag)
IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentWithTagClosed,
@@ -1149,6 +1151,15 @@ ChromeURLRequestContext* RenderMessageFilter::GetRequestContextForURL(
context_getter->GetURLRequestContext());
}
+void RenderMessageFilter::OnPlatformRequestTextCheck(
+ int route_id,
+ int identifier,
+ int document_tag,
+ const string16& text) {
+ SpellCheckerPlatform::RequestTextCheck(
+ route_id, identifier, document_tag, text, this);
+}
+
void RenderMessageFilter::OnPlatformCheckSpelling(const string16& word,
int tag,
bool* correct) {

Powered by Google App Engine
This is Rietveld 408576698