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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/JavascriptAppModalDialog.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
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | 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/JavascriptAppModalDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/JavascriptAppModalDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/JavascriptAppModalDialog.java
index 7c284a927d31ac646ee0c294d31c616e234e2f8c..a59c30b0f9486ce1421132ba6233309a20bb44f0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/JavascriptAppModalDialog.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/JavascriptAppModalDialog.java
@@ -17,7 +17,7 @@ import android.widget.TextView;
import org.chromium.base.CalledByNative;
import org.chromium.content.app.AppResource;
-import org.chromium.content.browser.ContentViewCore;
+import org.chromium.ui.gfx.NativeWindow;
public class JavascriptAppModalDialog {
private String mTitle;
@@ -60,10 +60,9 @@ public class JavascriptAppModalDialog {
}
@CalledByNative
- void showJavascriptAppModalDialog(ContentViewCore contentViewCore, int nativeDialogPointer) {
- assert contentViewCore != null;
-
- Context context = contentViewCore.getContext();
+ void showJavascriptAppModalDialog(NativeWindow window, int nativeDialogPointer) {
+ assert window != null;
+ Context context = window.getActivity();
// Cache the native dialog pointer so that we can use it to return the
// response.
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | chrome/browser/android/tab_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698