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

Side by Side Diff: chrome/browser/spellchecker/spellchecker_session_bridge_android.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: Removed unused variables from past implementation approach 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h"
11
12 class SpellCheckerSessionBridge {
please use gerrit instead 2015/08/11 16:43:47 Some docs on class and methods would not hurt.
dylanking 2015/08/12 01:29:55 Agreed, done.
13 public:
14 SpellCheckerSessionBridge(int render_process_id);
please use gerrit instead 2015/08/11 16:43:47 Mark this constructor explicit to avoid implicit c
please use gerrit instead 2015/08/11 16:43:47 If you have a constructor, you should have a destr
dylanking 2015/08/12 00:16:27 Done.
15 void RequestTextCheck(int route_id,
16 int identifier,
17 const base::string16& text);
18 static bool RegisterSpellCheckerSessionBridge(JNIEnv* env);
please use gerrit instead 2015/08/11 16:43:47 Static methods should be right after constructor/d
dylanking 2015/08/12 01:29:55 Done.
19 void GetSpellcheckInfo(JNIEnv* env,
please use gerrit instead 2015/08/11 16:43:47 s/GetSpellcheckInfo/ProcessSpellcheckResults/
dylanking 2015/08/12 01:29:55 Done, though I capitalized the C in "Spellcheck" t
20 jobject jobj,
21 jstring text,
22 jintArray offsetArray,
23 jintArray lengthArray);
24
25 private:
26 int render_process_id_;
27 int route_id_;
please use gerrit instead 2015/08/11 16:43:47 What is the difference between render_process_id_
dylanking 2015/08/12 01:29:55 I'm not entirely sure. render_process_id seems to
28 int identifier_;
29 base::android::ScopedJavaGlobalRef<jobject> java_object_;
30 };
please use gerrit instead 2015/08/11 16:43:47 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSessionBridge
dylanking 2015/08/12 01:29:55 Done.
31
32 #endif
please use gerrit instead 2015/08/11 16:43:47 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK
dylanking 2015/08/12 01:29:55 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698