OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/spellchecker/spellchecker_session_bridge_android.h" | 5 #include "chrome/browser/spellchecker/spellchecker_session_bridge_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
12 #include "components/spellcheck/common/spellcheck_messages.h" | 12 #include "components/spellcheck/common/spellcheck_messages.h" |
13 #include "components/spellcheck/common/spellcheck_result.h" | 13 #include "components/spellcheck/common/spellcheck_result.h" |
14 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
15 #include "jni/SpellCheckerSessionBridge_jni.h" | 15 #include "jni/SpellCheckerSessionBridge_jni.h" |
16 | 16 |
| 17 using base::android::JavaParamRef; |
| 18 |
17 SpellCheckerSessionBridge::SpellCheckerSessionBridge(int render_process_id) | 19 SpellCheckerSessionBridge::SpellCheckerSessionBridge(int render_process_id) |
18 : render_process_id_(render_process_id) {} | 20 : render_process_id_(render_process_id) {} |
19 | 21 |
20 SpellCheckerSessionBridge::~SpellCheckerSessionBridge() {} | 22 SpellCheckerSessionBridge::~SpellCheckerSessionBridge() {} |
21 | 23 |
22 // static | 24 // static |
23 bool SpellCheckerSessionBridge::RegisterJNI(JNIEnv* env) { | 25 bool SpellCheckerSessionBridge::RegisterJNI(JNIEnv* env) { |
24 return RegisterNativesImpl(env); | 26 return RegisterNativesImpl(env); |
25 } | 27 } |
26 | 28 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 java_object_.Reset(); | 105 java_object_.Reset(); |
104 } | 106 } |
105 | 107 |
106 SpellCheckerSessionBridge::SpellingRequest::SpellingRequest( | 108 SpellCheckerSessionBridge::SpellingRequest::SpellingRequest( |
107 int route_id, | 109 int route_id, |
108 int identifier, | 110 int identifier, |
109 const base::string16& text) | 111 const base::string16& text) |
110 : route_id(route_id), identifier(identifier), text(text) {} | 112 : route_id(route_id), identifier(identifier), text(text) {} |
111 | 113 |
112 SpellCheckerSessionBridge::SpellingRequest::~SpellingRequest() {} | 114 SpellCheckerSessionBridge::SpellingRequest::~SpellingRequest() {} |
OLD | NEW |