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

Unified Diff: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java

Issue 22314005: [Android] On calling openNewTab, pass the disposition instead of incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted copyright year update Created 7 years, 4 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: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
diff --git a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
index 62d24031dc41c8bee70839e77fc42eb0e0486153..c09cb89629cee8bd1c3e4b37f8f1b5b775bfb654 100644
--- a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
+++ b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
@@ -26,7 +26,7 @@ public class WebContentsDelegateAndroid {
// Equivalent of WebCore::WebConsoleMessage::LevelError.
public static final int LOG_LEVEL_ERROR = 3;
- // Flags passed to the WebContentsDelegate.navigationStateChanged to tell it
+ // Flags passed to the WebContentsDelegateAndroid.navigationStateChanged to tell it
// what has changed. Should match the values in invalidate_type.h.
// Equivalent of InvalidateTypes::INVALIDATE_TYPE_URL.
public static final int INVALIDATE_TYPE_URL = 1 << 0;
@@ -47,8 +47,13 @@ public class WebContentsDelegateAndroid {
return mMostRecentProgress;
}
+ /**
+ * @param disposition The new tab disposition as per the constants in
+ * org.chromium.ui.WindowOpenDisposition (See window_open_disposition_list.h
+ * for the enumeration definitions).
+ */
@CalledByNative
- public void openNewTab(String url, String extraHeaders, byte[] postData, boolean incognito) {
+ public void openNewTab(String url, String extraHeaders, byte[] postData, int disposition) {
}
@CalledByNative

Powered by Google App Engine
This is Rietveld 408576698