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

Unified Diff: android_webview/native/android_webview_jni_registrar.cc

Issue 2264633002: [Android] Add spellchecking support in android_webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « android_webview/native/DEPS ('k') | android_webview/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/android_webview_jni_registrar.cc
diff --git a/android_webview/native/android_webview_jni_registrar.cc b/android_webview/native/android_webview_jni_registrar.cc
index c63d915f5d27a7c26e6856a16e016a46edc60e00..21291a07bb9ac8609ef39c60bba54b79549a4b73 100644
--- a/android_webview/native/android_webview_jni_registrar.cc
+++ b/android_webview/native/android_webview_jni_registrar.cc
@@ -27,6 +27,10 @@
#include "base/android/jni_registrar.h"
#include "base/trace_event/trace_event.h"
+#if defined(ENABLE_SPELLCHECK)
+#include "components/spellcheck/browser/android/component_jni_registrar.h"
+#endif
+
namespace android_webview {
static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
@@ -50,6 +54,9 @@ static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
{ "CookieManager", RegisterCookieManager },
{ "AwMessagePortService", RegisterAwMessagePortService },
{ "AwGLFunctor", RegisterAwGLFunctor },
+#if defined(ENABLE_SPELLCHECK)
+ {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni},
+#endif
};
bool RegisterJni(JNIEnv* env) {
« no previous file with comments | « android_webview/native/DEPS ('k') | android_webview/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698