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

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

Issue 178193033: Android: support http referrers for context menu navigations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestShellTab compile error. 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 | Annotate | Revision Log
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.content_public.Referrer;
8
7 /** 9 /**
8 * An empty implementation of {@link ChromeContextMenuItemDelegate} to make over riding subsets of 10 * An empty implementation of {@link ChromeContextMenuItemDelegate} to make over riding subsets of
9 * the delegate methods easier. 11 * the delegate methods easier.
10 */ 12 */
11 public class EmptyChromeContextMenuItemDelegate implements ChromeContextMenuItem Delegate { 13 public class EmptyChromeContextMenuItemDelegate implements ChromeContextMenuItem Delegate {
12 @Override 14 @Override
13 public boolean isIncognito() { 15 public boolean isIncognito() {
14 return false; 16 return false;
15 } 17 }
16 18
17 @Override 19 @Override
18 public boolean isIncognitoSupported() { 20 public boolean isIncognitoSupported() {
19 return false; 21 return false;
20 } 22 }
21 23
22 @Override 24 @Override
23 public boolean canLoadOriginalImage() { 25 public boolean canLoadOriginalImage() {
24 return false; 26 return false;
25 } 27 }
26 28
27 @Override 29 @Override
28 public boolean startDownload(boolean isLink) { 30 public boolean startDownload(boolean isLink) {
29 return false; 31 return false;
30 } 32 }
31 33
32 @Override 34 @Override
33 public void onOpenInNewTab(String url) { 35 public void onOpenInNewTab(String url, Referrer referrer) {
34 } 36 }
35 37
36 @Override 38 @Override
37 public void onOpenInNewIncognitoTab(String url) { 39 public void onOpenInNewIncognitoTab(String url) {
38 } 40 }
39 41
40 @Override 42 @Override
41 public void onOpenImageUrl(String url) { 43 public void onOpenImageUrl(String url, Referrer referrer) {
42 } 44 }
43 45
44 @Override 46 @Override
45 public void onOpenImageInNewTab(String url) { 47 public void onOpenImageInNewTab(String url, Referrer referrer) {
46 } 48 }
47 49
48 @Override 50 @Override
49 public void onSaveToClipboard(String text, boolean isUrl) { 51 public void onSaveToClipboard(String text, boolean isUrl) {
50 } 52 }
51 53
52 @Override 54 @Override
53 public void onSaveImageToClipboard(String url) { 55 public void onSaveImageToClipboard(String url) {
54 } 56 }
55 57
56 @Override 58 @Override
57 public void onSearchByImageInNewTab() { 59 public void onSearchByImageInNewTab() {
58 } 60 }
59 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698