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

Unified Diff: chrome/renderer/spellchecker/spellcheck.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/renderer/spellchecker/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index 4220f4a5ebd011f41b8c7c0a9c40ed485fdcb9c9..eed27c379c58d4e43a8dd21f905dd82bcd126baf 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -286,3 +286,14 @@ bool SpellCheck::IsValidContraction(const string16& contraction, int tag) {
}
return true;
}
+
+bool SpellCheck::RequestCheckingOfText(
+ int32 routing_id, const string16& text, int tag, int request_id) {
+ if (!is_using_platform_spelling_engine_)
+ return false;
+
+ RenderThread::current()->Send(
+ new ViewHostMsg_SpellChecker_PlatformRequestTextCheck(
+ routing_id, request_id, tag, text));
+ return true;
+}

Powered by Google App Engine
This is Rietveld 408576698