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

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

Issue 2663373003: [Android] Add options in the context menu of CCT to open in a new Chrome tab or incoginto tab (Closed)
Patch Set: Rebase to master branch. Created 3 years, 10 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: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
index 1e62241339daaf94e6dabd060bed418cd1a39ac5..8832c6f6051b88b12f1f45d87581074782887db5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
@@ -153,4 +153,22 @@ public interface ContextMenuItemDelegate {
* @param pageUrl URL of the current page.
*/
void onOpenInChrome(String linkUrl, String pageUrl);
+
+ /**
+ * Called when the {@code url} should be opened in a new Chrome tab from CCT.
+ * @param url The URL to open.
+ * @param isIncognito true if the {@code url} should be opened in a new incognito tab.
+ */
+ void onOpenInNewChromeTabFromCCT(String linkUrl, boolean isIncognito);
+
+ /**
+ * @return title of the context menu to open a page in external apps.
+ */
+ String getTitleForOpenTabInExternalApp();
+
+ /**
+ * Called when the current Chrome app is not the default to handle a View Intent.
+ * @param url The URL to open.
+ */
+ void onOpenInDefaultBrowser(String url);
}

Powered by Google App Engine
This is Rietveld 408576698