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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 11195033: Upstream hooks for javascript touch handlers on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.pm.ActivityInfo; 9 import android.content.pm.ActivityInfo;
10 import android.content.pm.PackageManager; 10 import android.content.pm.PackageManager;
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 @Override 825 @Override
826 public boolean sendTouchEvent(long timeMs, int action, TouchPoint[] pts) { 826 public boolean sendTouchEvent(long timeMs, int action, TouchPoint[] pts) {
827 if (mNativeContentViewCore != 0) { 827 if (mNativeContentViewCore != 0) {
828 return nativeSendTouchEvent(mNativeContentViewCore, timeMs, action, pts); 828 return nativeSendTouchEvent(mNativeContentViewCore, timeMs, action, pts);
829 } 829 }
830 return false; 830 return false;
831 } 831 }
832 832
833 @SuppressWarnings("unused") 833 @SuppressWarnings("unused")
834 @CalledByNative 834 @CalledByNative
835 private void didSetNeedTouchEvents(boolean needTouchEvents) { 835 private void hasTouchEventHandlers(boolean hasTouchHandlers) {
836 mContentViewGestureHandler.didSetNeedTouchEvents(needTouchEvents); 836 mContentViewGestureHandler.hasTouchEventHandlers(hasTouchHandlers);
837 } 837 }
838 838
839 @SuppressWarnings("unused") 839 @SuppressWarnings("unused")
840 @CalledByNative 840 @CalledByNative
841 private void confirmTouchEvent(boolean handled) { 841 private void confirmTouchEvent(boolean handled) {
842 mContentViewGestureHandler.confirmTouchEvent(handled); 842 mContentViewGestureHandler.confirmTouchEvent(handled);
843 } 843 }
844 844
845 @Override 845 @Override
846 public boolean sendGesture(int type, long timeMs, int x, int y, Bundle b) { 846 public boolean sendGesture(int type, long timeMs, int x, int y, Bundle b) {
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 private native void nativeAddJavascriptInterface(int nativeContentViewCoreIm pl, Object object, 2186 private native void nativeAddJavascriptInterface(int nativeContentViewCoreIm pl, Object object,
2187 String name, boolean requir eAnnotation); 2187 String name, boolean requir eAnnotation);
2188 2188
2189 private native void nativeRemoveJavascriptInterface(int nativeContentViewCor eImpl, String name); 2189 private native void nativeRemoveJavascriptInterface(int nativeContentViewCor eImpl, String name);
2190 2190
2191 private native int nativeGetNavigationHistory(int nativeContentViewCoreImpl, Object context); 2191 private native int nativeGetNavigationHistory(int nativeContentViewCoreImpl, Object context);
2192 2192
2193 private native void nativeUpdateVSyncParameters(int nativeContentViewCoreImp l, 2193 private native void nativeUpdateVSyncParameters(int nativeContentViewCoreImp l,
2194 long timebaseMicros, long intervalMicros); 2194 long timebaseMicros, long intervalMicros);
2195 } 2195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698