OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.contextmenu; | 5 package org.chromium.chrome.browser.contextmenu; |
6 | 6 |
7 import org.chromium.chrome.browser.tab.Tab; | 7 import org.chromium.chrome.browser.tab.Tab; |
8 import org.chromium.content.browser.ContentViewCore; | 8 import org.chromium.content.browser.ContentViewCore; |
9 import org.chromium.content_public.common.Referrer; | 9 import org.chromium.content_public.common.Referrer; |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 * @return page url. | 146 * @return page url. |
147 */ | 147 */ |
148 String getPageUrl(); | 148 String getPageUrl(); |
149 | 149 |
150 /** | 150 /** |
151 * Called when a link should be opened in the main Chrome browser. | 151 * Called when a link should be opened in the main Chrome browser. |
152 * @param linkUrl URL that should be opened. | 152 * @param linkUrl URL that should be opened. |
153 * @param pageUrl URL of the current page. | 153 * @param pageUrl URL of the current page. |
154 */ | 154 */ |
155 void onOpenInChrome(String linkUrl, String pageUrl); | 155 void onOpenInChrome(String linkUrl, String pageUrl); |
| 156 |
| 157 /** |
| 158 * Called when the {@code url} should be opened in a new Chrome tab from CCT
. |
| 159 * @param url The URL to open. |
| 160 * @param isIncognito true if the {@code url} should be opened in a new inco
gnito tab. |
| 161 */ |
| 162 void onOpenInNewChromeTabFromCCT(String linkUrl, boolean isIncognito); |
| 163 |
| 164 /** |
| 165 * @return title of the context menu to open a page in external apps. |
| 166 */ |
| 167 String getTitleForOpenTabInExternalApp(); |
| 168 |
| 169 /** |
| 170 * Called when the current Chrome app is not the default to handle a View In
tent. |
| 171 * @param url The URL to open. |
| 172 */ |
| 173 void onOpenInDefaultBrowser(String url); |
156 } | 174 } |
OLD | NEW |