From 57ae1393d3097edada2640b40c895396b69cc919 Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Mon, 27 Feb 2012 15:46:10 +0000 Subject: Fixup webkit for WebViewClassic rename Changes native method bindings from API classes WebView and WebSettings, to the corresponding implementation classes WebViewClassic and WebSettingsClassic Interdepends on https://android-git.corp.google.com/g/165608 Change-Id: Ie47e5c8453fabef2afae399f411ffbe047cbfaab --- Source/WebKit/android/jni/WebSettings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/WebKit/android/jni/WebSettings.cpp') diff --git a/Source/WebKit/android/jni/WebSettings.cpp b/Source/WebKit/android/jni/WebSettings.cpp index 59ade52..65ac360 100644 --- a/Source/WebKit/android/jni/WebSettings.cpp +++ b/Source/WebKit/android/jni/WebSettings.cpp @@ -130,8 +130,8 @@ struct FieldIds { mPageCacheCapacity = env->GetFieldID(clazz, "mPageCacheCapacity", "I"); #if ENABLE(WEB_AUTOFILL) mAutoFillEnabled = env->GetFieldID(clazz, "mAutoFillEnabled", "Z"); - mAutoFillProfile = env->GetFieldID(clazz, "mAutoFillProfile", "Landroid/webkit/WebSettings$AutoFillProfile;"); - jclass autoFillProfileClass = env->FindClass("android/webkit/WebSettings$AutoFillProfile"); + mAutoFillProfile = env->GetFieldID(clazz, "mAutoFillProfile", "Landroid/webkit/WebSettingsClassic$AutoFillProfile;"); + jclass autoFillProfileClass = env->FindClass("android/webkit/WebSettingsClassic$AutoFillProfile"); mAutoFillProfileFullName = env->GetFieldID(autoFillProfileClass, "mFullName", "Ljava/lang/String;"); mAutoFillProfileEmailAddress = env->GetFieldID(autoFillProfileClass, "mEmailAddress", "Ljava/lang/String;"); mAutoFillProfileCompanyName = env->GetFieldID(autoFillProfileClass, "mCompanyName", "Ljava/lang/String;"); @@ -601,11 +601,11 @@ static JNINativeMethod gWebSettingsMethods[] = { int registerWebSettings(JNIEnv* env) { - jclass clazz = env->FindClass("android/webkit/WebSettings"); - ALOG_ASSERT(clazz, "Unable to find class WebSettings!"); + jclass clazz = env->FindClass("android/webkit/WebSettingsClassic"); + ALOG_ASSERT(clazz, "Unable to find class WebSettingsClassic!"); gFieldIds = new FieldIds(env, clazz); env->DeleteLocalRef(clazz); - return jniRegisterNativeMethods(env, "android/webkit/WebSettings", + return jniRegisterNativeMethods(env, "android/webkit/WebSettingsClassic", gWebSettingsMethods, NELEM(gWebSettingsMethods)); } -- cgit v1.1