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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java

Issue 148523013: [Android] Rename TabBase to Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2014_01_22_tabbase
Patch Set: sync Created 6 years, 9 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 unified diff | Download patch
OLDNEW
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.TabBase; 7 import org.chromium.chrome.browser.Tab;
8 import org.chromium.content.browser.ContentView; 8 import org.chromium.content.browser.ContentView;
9 9
10 /** 10 /**
11 * A delegate responsible for taking actions based on context menu selections. 11 * A delegate responsible for taking actions based on context menu selections.
12 */ 12 */
13 public interface ChromeContextMenuItemDelegate { 13 public interface ChromeContextMenuItemDelegate {
14 /** 14 /**
15 * @return Whether or not this context menu is being shown for an incognito {@link ContentView}. 15 * @return Whether or not this context menu is being shown for an incognito {@link ContentView}.
16 */ 16 */
17 boolean isIncognito(); 17 boolean isIncognito();
(...skipping 11 matching lines...) Expand all
29 29
30 /** 30 /**
31 * Called when the context menu is trying to start a download. 31 * Called when the context menu is trying to start a download.
32 * @param isLink Whether or not the download is a link (as opposed to an ima ge/video). 32 * @param isLink Whether or not the download is a link (as opposed to an ima ge/video).
33 * @return Whether or not a download should actually be started. 33 * @return Whether or not a download should actually be started.
34 */ 34 */
35 boolean startDownload(boolean isLink); 35 boolean startDownload(boolean isLink);
36 36
37 /** 37 /**
38 * Called when the {@code url} should be opened in a new tab with the same i ncognito state as 38 * Called when the {@code url} should be opened in a new tab with the same i ncognito state as
39 * the current {@link TabBase}. 39 * the current {@link Tab}.
40 * @param url The URL to open. 40 * @param url The URL to open.
41 */ 41 */
42 void onOpenInNewTab(String url); 42 void onOpenInNewTab(String url);
43 43
44 /** 44 /**
45 * Called when the {@code url} should be opened in a new incognito tab. 45 * Called when the {@code url} should be opened in a new incognito tab.
46 * @param url The URL to open. 46 * @param url The URL to open.
47 */ 47 */
48 void onOpenInNewIncognitoTab(String url); 48 void onOpenInNewIncognitoTab(String url);
49 49
(...skipping 21 matching lines...) Expand all
71 * clipboard. 71 * clipboard.
72 * @param url The image URL. 72 * @param url The image URL.
73 */ 73 */
74 void onSaveImageToClipboard(String url); 74 void onSaveImageToClipboard(String url);
75 75
76 /** 76 /**
77 * Called when a search by image should be performed in a new tab. 77 * Called when a search by image should be performed in a new tab.
78 */ 78 */
79 void onSearchByImageInNewTab(); 79 void onSearchByImageInNewTab();
80 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698