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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/Shell.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/shell/android/java/src/org/chromium/content_shell/Shell.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
index aa3418105f7000aa03059ca3062d0d4e27d6b064..21ce108ecd019dce79c2a20693edfd8052bac131 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
@@ -23,6 +23,7 @@ import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.content.browser.ContentView;
import org.chromium.content.browser.LoadUrlParams;
+import org.chromium.ui.gfx.NativeWindow;
/**
* Container for the various UI components that make up a shell window.
@@ -48,6 +49,7 @@ public class Shell extends LinearLayout {
private ClipDrawable mProgressDrawable;
private View mSurfaceView;
+ private NativeWindow mWindow;
/**
* Constructor for inflating via XML.
@@ -67,6 +69,13 @@ public class Shell extends LinearLayout {
FrameLayout.LayoutParams.MATCH_PARENT));
}
+ /**
+ * @param window The owning window for this shell.
+ */
+ public void setWindow(NativeWindow window) {
+ mWindow = window;
+ }
+
@Override
protected void onFinishInflate() {
super.onFinishInflate();
@@ -173,7 +182,7 @@ public class Shell extends LinearLayout {
@CalledByNative
private void initFromNativeTabContents(int nativeTabContents) {
mContentView = ContentView.newInstance(
- getContext(), nativeTabContents, ContentView.PERSONALITY_CHROME);
+ getContext(), nativeTabContents, mWindow, ContentView.PERSONALITY_CHROME);
if (mContentView.getUrl() != null) mUrlTextView.setText(mContentView.getUrl());
((FrameLayout) findViewById(R.id.contentview_holder)).addView(mContentView,
new FrameLayout.LayoutParams(

Powered by Google App Engine
This is Rietveld 408576698