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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java

Issue 67573003: Android: moves chrome/ to use long for JNI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java b/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
index 4ed3be020f1119e10943fd9cdd8582269e693122..df254c5f713baddd820774980007f2229d0271bd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
@@ -19,7 +19,7 @@ import java.sql.Types;
public class SQLiteCursor extends AbstractCursor {
private static final String TAG = "SQLiteCursor";
// Used by JNI.
- private int mNativeSQLiteCursor;
+ private long mNativeSQLiteCursor;
// The count of result rows.
private int mCount = -1;
@@ -34,12 +34,12 @@ public class SQLiteCursor extends AbstractCursor {
private final Object mMoveLock = new Object();
private final Object mGetBlobLock = new Object();
- private SQLiteCursor(int nativeSQLiteCursor) {
+ private SQLiteCursor(long nativeSQLiteCursor) {
mNativeSQLiteCursor = nativeSQLiteCursor;
}
@CalledByNative
- private static SQLiteCursor create(int nativeSQLiteCursor) {
+ private static SQLiteCursor create(long nativeSQLiteCursor) {
return new SQLiteCursor(nativeSQLiteCursor);
}
@@ -232,15 +232,15 @@ public class SQLiteCursor extends AbstractCursor {
return mColumnTypes[index];
}
- private native void nativeDestroy(int nativeSQLiteCursor);
- private native int nativeGetCount(int nativeSQLiteCursor);
- private native String[] nativeGetColumnNames(int nativeSQLiteCursor);
- private native int nativeGetColumnType(int nativeSQLiteCursor, int column);
- private native String nativeGetString(int nativeSQLiteCursor, int column);
- private native byte[] nativeGetBlob(int nativeSQLiteCursor, int column);
- private native boolean nativeIsNull(int nativeSQLiteCursor, int column);
- private native long nativeGetLong(int nativeSQLiteCursor, int column);
- private native int nativeGetInt(int nativeSQLiteCursor, int column);
- private native double nativeGetDouble(int nativeSQLiteCursor, int column);
- private native int nativeMoveTo(int nativeSQLiteCursor, int newPosition);
+ private native void nativeDestroy(long nativeSQLiteCursor);
+ private native int nativeGetCount(long nativeSQLiteCursor);
+ private native String[] nativeGetColumnNames(long nativeSQLiteCursor);
+ private native int nativeGetColumnType(long nativeSQLiteCursor, int column);
+ private native String nativeGetString(long nativeSQLiteCursor, int column);
+ private native byte[] nativeGetBlob(long nativeSQLiteCursor, int column);
+ private native boolean nativeIsNull(long nativeSQLiteCursor, int column);
+ private native long nativeGetLong(long nativeSQLiteCursor, int column);
+ private native int nativeGetInt(long nativeSQLiteCursor, int column);
+ private native double nativeGetDouble(long nativeSQLiteCursor, int column);
+ private native int nativeMoveTo(long nativeSQLiteCursor, int newPosition);
}

Powered by Google App Engine
This is Rietveld 408576698