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

Unified Diff: chrome/browser/spellcheck_message_filter.cc

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT 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
« no previous file with comments | « chrome/browser/spellcheck_message_filter.h ('k') | chrome/browser/spellcheck_message_filter_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellcheck_message_filter.cc
diff --git a/chrome/browser/spellcheck_message_filter.cc b/chrome/browser/spellcheck_message_filter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f2efbf9ebc13bc1e3fbac944775206505c04e893
--- /dev/null
+++ b/chrome/browser/spellcheck_message_filter.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/spellcheck_message_filter.h"
+
+#include "chrome/browser/spellchecker_platform_engine.h"
+#include "chrome/common/render_messages.h"
+
+SpellCheckMessageFilter::SpellCheckMessageFilter() {
+}
+
+SpellCheckMessageFilter::~SpellCheckMessageFilter() {
+}
+
+bool SpellCheckMessageFilter::OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) {
+ bool handled = true;
+ IPC_BEGIN_MESSAGE_MAP_EX(SpellCheckMessageFilter, message, *message_was_ok)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SpellChecker_PlatformRequestTextCheck,
+ OnPlatformRequestTextCheck)
+ IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_END_MESSAGE_MAP()
+ return handled;
+}
+
+void SpellCheckMessageFilter::OnPlatformRequestTextCheck(
+ int route_id,
+ int identifier,
+ int document_tag,
+ const string16& text) {
+ SpellCheckerPlatform::RequestTextCheck(
+ route_id, identifier, document_tag, text, this);
+}
« no previous file with comments | « chrome/browser/spellcheck_message_filter.h ('k') | chrome/browser/spellcheck_message_filter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698