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

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

Issue 11098008: Adding a WindowAndroidHelper class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yaron's nit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/tab_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
index 7a124fbf2cf900a782b03db29a863bb4b04daa9f..7e1fb81fbad42dfd5228e96286282990de47ab9a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
@@ -56,7 +56,7 @@ public class TabBase {
}
mContentView = ContentView.newInstance(context, nativeWebContentsPtr, mWindow,
ContentView.PERSONALITY_CHROME);
- mNativeTabBaseAndroidImpl = nativeInit(nativeWebContentsPtr);
+ mNativeTabBaseAndroidImpl = nativeInit(nativeWebContentsPtr, window.getNativePointer());
// Build the WebContentsDelegate
mWebContentsDelegate = delegate == null ? new ChromeWebContentsDelegateAndroid() : delegate;
@@ -131,7 +131,7 @@ public class TabBase {
}
}
- private native int nativeInit(int webContentsPtr);
+ private native int nativeInit(int webContentsPtr, int windowAndroidPtr);
private static native void nativeDestroy(int nativeTabBaseAndroidImpl);
private native void nativeInitWebContentsDelegate(int nativeTabBaseAndroidImpl,
ChromeWebContentsDelegateAndroid chromeWebContentsDelegateAndroid);
« no previous file with comments | « no previous file | chrome/browser/android/tab_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698