From f6e5bbe8804f63dfb72c5dce1e225a13b85177a7 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 3 Aug 2011 14:08:14 +0100 Subject: Minor clean-up in DeviceOrientation and DeviceMotion No functional change. See corresponding frameworks/base change https://android-git.corp.google.com/g/#change,125699 Change-Id: Iad7260fd506c13e773ee7a6c2225cbc71e8acdab --- Source/WebKit/android/jni/DeviceMotionAndOrientationManager.cpp | 8 ++++---- Source/WebKit/android/jni/DeviceMotionAndOrientationManager.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.cpp b/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.cpp index bd63f59..b69c2af 100644 --- a/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.cpp +++ b/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.cpp @@ -46,7 +46,7 @@ DeviceMotionAndOrientationManager::DeviceMotionAndOrientationManager(WebViewCore { } -void DeviceMotionAndOrientationManager::useMock() +void DeviceMotionAndOrientationManager::setUseMock() { m_useMock = true; } @@ -124,9 +124,9 @@ static WebViewCore* getWebViewCore(JNIEnv* env, jobject webViewCoreObject) return reinterpret_cast(env->GetIntField(webViewCoreObject, nativeClassField)); } -static void useMock(JNIEnv* env, jobject, jobject webViewCoreObject) +static void setUseMock(JNIEnv* env, jobject, jobject webViewCoreObject) { - getWebViewCore(env, webViewCoreObject)->deviceMotionAndOrientationManager()->useMock(); + getWebViewCore(env, webViewCoreObject)->deviceMotionAndOrientationManager()->setUseMock(); } static void onMotionChange(JNIEnv* env, jobject, jobject webViewCoreObject, bool canProvideX, double x, bool canProvideY, double y, bool canProvideZ, double z, double interval) @@ -151,7 +151,7 @@ static void onOrientationChange(JNIEnv* env, jobject, jobject webViewCoreObject, } static JNINativeMethod gDeviceMotionAndOrientationManagerMethods[] = { - { "nativeUseMock", "(Landroid/webkit/WebViewCore;)V", (void*) useMock }, + { "nativeSetUseMock", "(Landroid/webkit/WebViewCore;)V", (void*) setUseMock }, { "nativeOnMotionChange", "(Landroid/webkit/WebViewCore;ZDZDZDD)V", (void*) onMotionChange }, { "nativeSetMockOrientation", "(Landroid/webkit/WebViewCore;ZDZDZD)V", (void*) setMockOrientation }, { "nativeOnOrientationChange", "(Landroid/webkit/WebViewCore;ZDZDZD)V", (void*) onOrientationChange } diff --git a/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.h b/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.h index 44463c1..cc6821d 100644 --- a/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.h +++ b/Source/WebKit/android/jni/DeviceMotionAndOrientationManager.h @@ -46,7 +46,7 @@ class DeviceMotionAndOrientationManager { public: DeviceMotionAndOrientationManager(WebViewCore*); - void useMock(); + void setUseMock(); void setMockMotion(PassRefPtr); void onMotionChange(PassRefPtr); void setMockOrientation(PassRefPtr); -- cgit v1.1