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

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: 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
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..b808a1c1026b7c0e5f258cd8d5e71f0de24bf60a 100644
--- a/android_webview/native/android_webview_jni_registrar.cc
+++ b/android_webview/native/android_webview_jni_registrar.cc
@@ -26,6 +26,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "base/trace_event/trace_event.h"
+#include "components/spellcheck/browser/android/component_jni_registrar.h"
namespace android_webview {
@@ -50,6 +51,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) {

Powered by Google App Engine
This is Rietveld 408576698