Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index e6fd3e4669e1e581f9354e77163bdf562c1707ce..0aa16ba66a834080f3e5eb928e554ca176556266 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -364,7 +364,7 @@ public class ContentViewCore |
private ContentSettings mContentSettings; |
// Native pointer to C++ ContentViewCoreImpl object which will be set by nativeInit(). |
- private int mNativeContentViewCore = 0; |
+ private long mNativeContentViewCore = 0; |
private boolean mAttachedToWindow = false; |
@@ -724,7 +724,7 @@ public class ContentViewCore |
// Note that the caller remains the owner of the nativeWebContents and is responsible for |
// deleting it after destroying the ContentViewCore. |
public void initialize(ViewGroup containerView, InternalAccessDelegate internalDispatcher, |
- int nativeWebContents, WindowAndroid windowAndroid, |
+ long nativeWebContents, WindowAndroid windowAndroid, |
int inputEventDeliveryMode) { |
// Check whether to use hardware acceleration. This is a bit hacky, and |
// only works if the Context is actually an Activity (as it is in the |
@@ -787,7 +787,7 @@ public class ContentViewCore |
} |
@CalledByNative |
- void onNativeContentViewCoreDestroyed(int nativeContentViewCore) { |
+ void onNativeContentViewCoreDestroyed(long nativeContentViewCore) { |
assert nativeContentViewCore == mNativeContentViewCore; |
mNativeContentViewCore = 0; |
} |
@@ -934,7 +934,7 @@ public class ContentViewCore |
* @return native ContentViewCore pointer. |
*/ |
@CalledByNative |
- public int getNativeContentViewCore() { |
+ public long getNativeContentViewCore() { |
bulach
2013/11/18 16:26:42
this breaks downstream :-/
I have a patch ready an
Yaron
2013/11/18 17:18:49
I partly agree, but not 100% sure. As you can see
bulach
2013/11/18 17:38:03
see the comment on the other side.. :)
at least on
|
return mNativeContentViewCore; |
} |
@@ -3218,7 +3218,7 @@ public class ContentViewCore |
return false; |
} |
- private native int nativeInit(boolean hardwareAccelerated, int webContentsPtr, |
+ private native long nativeInit(boolean hardwareAccelerated, long webContentsPtr, |
long viewAndroidPtr, long windowAndroidPtr); |
@CalledByNative |
@@ -3231,10 +3231,10 @@ public class ContentViewCore |
return getContentViewClient().shouldBlockMediaRequest(url); |
} |
- private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentViewCoreImpl); |
+ private native void nativeOnJavaContentViewCoreDestroyed(long nativeContentViewCoreImpl); |
private native void nativeLoadUrl( |
- int nativeContentViewCoreImpl, |
+ long nativeContentViewCoreImpl, |
String url, |
int loadUrlType, |
int transitionType, |
@@ -3245,170 +3245,171 @@ public class ContentViewCore |
String virtualUrlForDataUrl, |
boolean canLoadLocalResources); |
- private native String nativeGetURL(int nativeContentViewCoreImpl); |
+ private native String nativeGetURL(long nativeContentViewCoreImpl); |
- private native String nativeGetTitle(int nativeContentViewCoreImpl); |
+ private native String nativeGetTitle(long nativeContentViewCoreImpl); |
private native void nativeShowInterstitialPage( |
- int nativeContentViewCoreImpl, String url, int nativeInterstitialPageDelegateAndroid); |
- private native boolean nativeIsShowingInterstitialPage(int nativeContentViewCoreImpl); |
+ long nativeContentViewCoreImpl, String url, long nativeInterstitialPageDelegateAndroid); |
+ private native boolean nativeIsShowingInterstitialPage(long nativeContentViewCoreImpl); |
- private native boolean nativeIsIncognito(int nativeContentViewCoreImpl); |
+ private native boolean nativeIsIncognito(long nativeContentViewCoreImpl); |
- private native void nativeSetFocus(int nativeContentViewCoreImpl, boolean focused); |
+ private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean focused); |
private native void nativeSendOrientationChangeEvent( |
- int nativeContentViewCoreImpl, int orientation); |
+ long nativeContentViewCoreImpl, int orientation); |
// All touch events (including flings, scrolls etc) accept coordinates in physical pixels. |
private native boolean nativeSendTouchEvent( |
- int nativeContentViewCoreImpl, long timeMs, int action, TouchPoint[] pts); |
+ long nativeContentViewCoreImpl, long timeMs, int action, TouchPoint[] pts); |
private native int nativeSendMouseMoveEvent( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native int nativeSendMouseWheelEvent( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, float verticalAxis); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, float verticalAxis); |
private native void nativeScrollBegin( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
- private native void nativeScrollEnd(int nativeContentViewCoreImpl, long timeMs); |
+ private native void nativeScrollEnd(long nativeContentViewCoreImpl, long timeMs); |
private native void nativeScrollBy( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, |
float deltaX, float deltaY); |
private native void nativeFlingStart( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, float vx, float vy); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, float vx, float vy); |
- private native void nativeFlingCancel(int nativeContentViewCoreImpl, long timeMs); |
+ private native void nativeFlingCancel(long nativeContentViewCoreImpl, long timeMs); |
private native void nativeSingleTap( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
private native void nativeSingleTapUnconfirmed( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native void nativeShowPressState( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native void nativeTapCancel( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native void nativeTapDown( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native void nativeDoubleTap( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
private native void nativeLongPress( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
private native void nativeLongTap( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, boolean linkPreviewTap); |
private native void nativePinchBegin( |
- int nativeContentViewCoreImpl, long timeMs, float x, float y); |
+ long nativeContentViewCoreImpl, long timeMs, float x, float y); |
- private native void nativePinchEnd(int nativeContentViewCoreImpl, long timeMs); |
+ private native void nativePinchEnd(long nativeContentViewCoreImpl, long timeMs); |
- private native void nativePinchBy(int nativeContentViewCoreImpl, long timeMs, |
+ private native void nativePinchBy(long nativeContentViewCoreImpl, long timeMs, |
float anchorX, float anchorY, float deltaScale); |
private native void nativeSelectBetweenCoordinates( |
- int nativeContentViewCoreImpl, float x1, float y1, float x2, float y2); |
+ long nativeContentViewCoreImpl, float x1, float y1, float x2, float y2); |
- private native void nativeMoveCaret(int nativeContentViewCoreImpl, float x, float y); |
+ private native void nativeMoveCaret(long nativeContentViewCoreImpl, float x, float y); |
- private native boolean nativeCanGoBack(int nativeContentViewCoreImpl); |
- private native boolean nativeCanGoForward(int nativeContentViewCoreImpl); |
- private native boolean nativeCanGoToOffset(int nativeContentViewCoreImpl, int offset); |
- private native void nativeGoBack(int nativeContentViewCoreImpl); |
- private native void nativeGoForward(int nativeContentViewCoreImpl); |
- private native void nativeGoToOffset(int nativeContentViewCoreImpl, int offset); |
- private native void nativeGoToNavigationIndex(int nativeContentViewCoreImpl, int index); |
- private native void nativeLoadIfNecessary(int nativeContentViewCoreImpl); |
- private native void nativeRequestRestoreLoad(int nativeContentViewCoreImpl); |
+ private native boolean nativeCanGoBack(long nativeContentViewCoreImpl); |
+ private native boolean nativeCanGoForward(long nativeContentViewCoreImpl); |
+ private native boolean nativeCanGoToOffset(long nativeContentViewCoreImpl, int offset); |
+ private native void nativeGoBack(long nativeContentViewCoreImpl); |
+ private native void nativeGoForward(long nativeContentViewCoreImpl); |
+ private native void nativeGoToOffset(long nativeContentViewCoreImpl, int offset); |
+ private native void nativeGoToNavigationIndex(long nativeContentViewCoreImpl, int index); |
+ private native void nativeLoadIfNecessary(long nativeContentViewCoreImpl); |
+ private native void nativeRequestRestoreLoad(long nativeContentViewCoreImpl); |
- private native void nativeStopLoading(int nativeContentViewCoreImpl); |
+ private native void nativeStopLoading(long nativeContentViewCoreImpl); |
- private native void nativeReload(int nativeContentViewCoreImpl, boolean checkForRepost); |
+ private native void nativeReload(long nativeContentViewCoreImpl, boolean checkForRepost); |
private native void nativeReloadIgnoringCache( |
- int nativeContentViewCoreImpl, boolean checkForRepost); |
+ long nativeContentViewCoreImpl, boolean checkForRepost); |
- private native void nativeCancelPendingReload(int nativeContentViewCoreImpl); |
+ private native void nativeCancelPendingReload(long nativeContentViewCoreImpl); |
- private native void nativeContinuePendingReload(int nativeContentViewCoreImpl); |
+ private native void nativeContinuePendingReload(long nativeContentViewCoreImpl); |
- private native void nativeSelectPopupMenuItems(int nativeContentViewCoreImpl, int[] indices); |
+ private native void nativeSelectPopupMenuItems(long nativeContentViewCoreImpl, int[] indices); |
- private native void nativeScrollFocusedEditableNodeIntoView(int nativeContentViewCoreImpl); |
- private native void nativeUndoScrollFocusedEditableNodeIntoView(int nativeContentViewCoreImpl); |
+ private native void nativeScrollFocusedEditableNodeIntoView(long nativeContentViewCoreImpl); |
+ private native void nativeUndoScrollFocusedEditableNodeIntoView(long nativeContentViewCoreImpl); |
- private native void nativeClearHistory(int nativeContentViewCoreImpl); |
+ private native void nativeClearHistory(long nativeContentViewCoreImpl); |
- private native void nativeEvaluateJavaScript(int nativeContentViewCoreImpl, |
+ private native void nativeEvaluateJavaScript(long nativeContentViewCoreImpl, |
String script, JavaScriptCallback callback, boolean startRenderer); |
- private native int nativeGetNativeImeAdapter(int nativeContentViewCoreImpl); |
+ private native int nativeGetNativeImeAdapter(long nativeContentViewCoreImpl); |
- private native int nativeGetCurrentRenderProcessId(int nativeContentViewCoreImpl); |
+ private native int nativeGetCurrentRenderProcessId(long nativeContentViewCoreImpl); |
- private native int nativeGetBackgroundColor(int nativeContentViewCoreImpl); |
+ private native int nativeGetBackgroundColor(long nativeContentViewCoreImpl); |
- private native void nativeOnShow(int nativeContentViewCoreImpl); |
- private native void nativeOnHide(int nativeContentViewCoreImpl); |
+ private native void nativeOnShow(long nativeContentViewCoreImpl); |
+ private native void nativeOnHide(long nativeContentViewCoreImpl); |
- private native void nativeSetUseDesktopUserAgent(int nativeContentViewCoreImpl, |
+ private native void nativeSetUseDesktopUserAgent(long nativeContentViewCoreImpl, |
boolean enabled, boolean reloadOnChange); |
- private native boolean nativeGetUseDesktopUserAgent(int nativeContentViewCoreImpl); |
+ private native boolean nativeGetUseDesktopUserAgent(long nativeContentViewCoreImpl); |
- private native void nativeClearSslPreferences(int nativeContentViewCoreImpl); |
+ private native void nativeClearSslPreferences(long nativeContentViewCoreImpl); |
- private native void nativeAddJavascriptInterface(int nativeContentViewCoreImpl, Object object, |
+ private native void nativeAddJavascriptInterface(long nativeContentViewCoreImpl, Object object, |
String name, Class requiredAnnotation, HashSet<Object> retainedObjectSet); |
- private native void nativeRemoveJavascriptInterface(int nativeContentViewCoreImpl, String name); |
+ private native void nativeRemoveJavascriptInterface(long nativeContentViewCoreImpl, |
+ String name); |
- private native int nativeGetNavigationHistory(int nativeContentViewCoreImpl, Object context); |
- private native void nativeGetDirectedNavigationHistory(int nativeContentViewCoreImpl, |
+ private native int nativeGetNavigationHistory(long nativeContentViewCoreImpl, Object context); |
+ private native void nativeGetDirectedNavigationHistory(long nativeContentViewCoreImpl, |
Object context, boolean isForward, int maxEntries); |
private native String nativeGetOriginalUrlForActiveNavigationEntry( |
- int nativeContentViewCoreImpl); |
+ long nativeContentViewCoreImpl); |
- private native void nativeUpdateVSyncParameters(int nativeContentViewCoreImpl, |
+ private native void nativeUpdateVSyncParameters(long nativeContentViewCoreImpl, |
long timebaseMicros, long intervalMicros); |
- private native void nativeOnVSync(int nativeContentViewCoreImpl, long frameTimeMicros); |
+ private native void nativeOnVSync(long nativeContentViewCoreImpl, long frameTimeMicros); |
- private native boolean nativeOnAnimate(int nativeContentViewCoreImpl, long frameTimeMicros); |
+ private native boolean nativeOnAnimate(long nativeContentViewCoreImpl, long frameTimeMicros); |
- private native boolean nativePopulateBitmapFromCompositor(int nativeContentViewCoreImpl, |
+ private native boolean nativePopulateBitmapFromCompositor(long nativeContentViewCoreImpl, |
Bitmap bitmap); |
- private native void nativeWasResized(int nativeContentViewCoreImpl); |
+ private native void nativeWasResized(long nativeContentViewCoreImpl); |
- private native boolean nativeIsRenderWidgetHostViewReady(int nativeContentViewCoreImpl); |
+ private native boolean nativeIsRenderWidgetHostViewReady(long nativeContentViewCoreImpl); |
- private native void nativeExitFullscreen(int nativeContentViewCoreImpl); |
- private native void nativeUpdateTopControlsState(int nativeContentViewCoreImpl, |
+ private native void nativeExitFullscreen(long nativeContentViewCoreImpl); |
+ private native void nativeUpdateTopControlsState(long nativeContentViewCoreImpl, |
boolean enableHiding, boolean enableShowing, boolean animate); |
- private native void nativeShowImeIfNeeded(int nativeContentViewCoreImpl); |
+ private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); |
private native void nativeAttachExternalVideoSurface( |
- int nativeContentViewCoreImpl, int playerId, Surface surface); |
+ long nativeContentViewCoreImpl, int playerId, Surface surface); |
private native void nativeDetachExternalVideoSurface( |
- int nativeContentViewCoreImpl, int playerId); |
+ long nativeContentViewCoreImpl, int playerId); |
private native void nativeSetAccessibilityEnabled( |
- int nativeContentViewCoreImpl, boolean enabled); |
+ long nativeContentViewCoreImpl, boolean enabled); |
- private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl, |
+ private native void nativeSendSingleTapUma(long nativeContentViewCoreImpl, |
int type, int count); |
- private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewCoreImpl, |
+ private native void nativeSendActionAfterDoubleTapUma(long nativeContentViewCoreImpl, |
int type, boolean hasDelay, int count); |
} |