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

Unified Diff: chrome/browser/spellchecker/spellcheck_message_filter_platform.h

Issue 1275813002: Implemented typo recognition in Chrome for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4_remove_mac_redundancies
Patch Set: Created 5 years, 4 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/spellchecker/spellcheck_message_filter_platform.h
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_platform.h b/chrome/browser/spellchecker/spellcheck_message_filter_platform.h
index a632112734b42457585b725c12f53d7b976d3a3a..fd12682b88fce87c398f754888d485305e3bd1b3 100644
--- a/chrome/browser/spellchecker/spellcheck_message_filter_platform.h
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_platform.h
@@ -10,6 +10,10 @@
#include "chrome/browser/spellchecker/spellcheck_message_filter.h"
#include "chrome/common/spellcheck_result.h"
#include "content/public/browser/browser_message_filter.h"
+#include "base/android/jni_android.h"
+#include "base/android/jni_array.h"
+#include "base/android/jni_string.h"
+
// A message filter implementation that receives
// the platform-specific spell checker requests from SpellCheckProvider.
@@ -21,6 +25,8 @@ class SpellCheckMessageFilterPlatform : public content::BrowserMessageFilter {
void OverrideThreadForMessage(const IPC::Message& message,
content::BrowserThread::ID* thread) override;
bool OnMessageReceived(const IPC::Message& message) override;
+ void GetSpellcheckInfo(JNIEnv* env, jobject jobj, jstring text,
+ jintArray offsetArray, jintArray lengthArray);
// Adjusts remote_results by examining local_results. Any result that's both
// local and remote stays type SPELLING, all others are flagged GRAMMAR.
@@ -45,11 +51,16 @@ class SpellCheckMessageFilterPlatform : public content::BrowserMessageFilter {
const base::string16& text,
std::vector<SpellCheckMarker> markers);
+ bool RegisterSpellCheckMessageFilterPlatform(JNIEnv* env);
please use gerrit instead 2015/08/06 16:58:28 From what I've seen, RegisterStuff(JNIEnv*) functi
dylanking 2015/08/07 03:33:53 I think they are supposed to be public, static cla
+
int ToDocumentTag(int route_id);
void RetireDocumentTag(int route_id);
std::map<int,int> tag_map_;
+ base::android::ScopedJavaGlobalRef<jobject> java_object_;
int render_process_id_;
+ int route_id_;
+ int identifier_;
// A JSON-RPC client that calls the Spelling service in the background.
scoped_ptr<SpellingServiceClient> client_;
@@ -57,4 +68,5 @@ class SpellCheckMessageFilterPlatform : public content::BrowserMessageFilter {
DISALLOW_COPY_AND_ASSIGN(SpellCheckMessageFilterPlatform);
};
+
#endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_

Powered by Google App Engine
This is Rietveld 408576698