From abaf8628154a468ecb6db12aa9bd9c84126de5ab Mon Sep 17 00:00:00 2001 From: "Shimeng (Simon) Wang" Date: Thu, 29 Jul 2010 16:32:54 -0700 Subject: Add back nativeClearContent since it's used in Java side. issue: 2841402 Change-Id: Ia147b39f84be91a92dd4f491e8d3de263df4244b --- WebKit/android/jni/WebViewCore.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'WebKit/android/jni/WebViewCore.cpp') diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 2b66a8e..3da678e 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -2815,6 +2815,15 @@ static jstring RequestLabel(JNIEnv *env, jobject obj, int framePointer, (WebCore::Frame*) framePointer, (WebCore::Node*) nodePointer)); } +static void ClearContent(JNIEnv *env, jobject obj) +{ +#ifdef ANDROID_INSTRUMENT + TimeCounterAuto counter(TimeCounter::WebViewCoreTimeCounter); +#endif + WebViewCore* viewImpl = GET_NATIVE_VIEW(env, obj); + viewImpl->clearContent(); +} + static void UpdateFrameCacheIfLoading(JNIEnv *env, jobject obj) { GET_NATIVE_VIEW(env, obj)->updateFrameCacheIfLoading(); @@ -3428,6 +3437,8 @@ static jobject GetTouchHighlightRects(JNIEnv* env, jobject obj, jint x, jint y, * JNI registration. */ static JNINativeMethod gJavaWebViewCoreMethods[] = { + { "nativeClearContent", "()V", + (void*) ClearContent }, { "nativeFocusBoundsChanged", "()Z", (void*) FocusBoundsChanged } , { "nativeKey", "(IIIZZZZ)Z", -- cgit v1.1