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

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

Issue 10916160: Upstreaming SelectFileDialog for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 41b9a73c6464f5b55bf04479835fb859b68023d9..72404b226867dbda138c7a7d8f458963054c4e0a 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
@@ -35,6 +35,7 @@ import org.chromium.content.browser.TouchPoint;
import org.chromium.content.browser.ZoomManager;
import org.chromium.content.common.CleanupReference;
import org.chromium.content.common.TraceEvent;
+import org.chromium.ui.gfx.NativeWindow;
/**
* Provides a Java-side 'wrapper' around a WebContent (native) instance.
@@ -311,6 +312,7 @@ public class ContentViewCore implements MotionEventDelegate {
* @param takeOwnershipOfWebContents Whether this object will take ownership of
* nativeWebContents over on its native side.
* @param nativeWebContents A pointer to the native web contents.
+ * @param nativeWindow An instance of the NativeWindow.
* @param isAccessFromFileURLsGrantedByDefault Default WebSettings configuration.
*/
// Perform important post-construction set up of the ContentViewCore.
@@ -321,11 +323,11 @@ public class ContentViewCore implements MotionEventDelegate {
// We supply the nativeWebContents pointer here rather than in the constructor to allow us
// to set the private browsing mode at a later point for the WebView implementation.
public void initialize(ViewGroup containerView, InternalAccessDelegate internalDispatcher,
- boolean takeOwnershipOfWebContents, int nativeWebContents,
+ boolean takeOwnershipOfWebContents, int nativeWebContents, NativeWindow nativeWindow,
boolean isAccessFromFileURLsGrantedByDefault) {
mContainerView = containerView;
mNativeContentViewCore = nativeInit(mHardwareAccelerated, takeOwnershipOfWebContents,
- nativeWebContents);
+ nativeWebContents, nativeWindow.getNativePointer());
mCleanupReference = new CleanupReference(
this, new DestroyRunnable(mNativeContentViewCore));
mContentSettings = new ContentSettings(
@@ -1327,7 +1329,7 @@ public class ContentViewCore implements MotionEventDelegate {
// The following methods are implemented at native side.
private native int nativeInit(boolean hardwareAccelerated, boolean takeOwnershipOfWebContents,
- int webContentsPtr);
+ int webContentsPtr, int windowAndroidPtr);
private static native void nativeDestroy(int nativeContentViewCore);

Powered by Google App Engine
This is Rietveld 408576698