• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 package org.chromium.chrome.browser.contextmenu;
6 
7 import org.chromium.content_public.Referrer;
8 
9 /**
10  * An empty implementation of {@link ChromeContextMenuItemDelegate} to make overriding subsets of
11  * the delegate methods easier.
12  */
13 public class EmptyChromeContextMenuItemDelegate implements ChromeContextMenuItemDelegate {
14     @Override
isIncognito()15     public boolean isIncognito() {
16         return false;
17     }
18 
19     @Override
isIncognitoSupported()20     public boolean isIncognitoSupported() {
21         return false;
22     }
23 
24     @Override
canLoadOriginalImage()25     public boolean canLoadOriginalImage() {
26         return false;
27     }
28 
29     @Override
startDownload(boolean isLink)30     public boolean startDownload(boolean isLink) {
31         return false;
32     }
33 
34     @Override
onOpenInNewTab(String url, Referrer referrer)35     public void onOpenInNewTab(String url, Referrer referrer) {
36     }
37 
38     @Override
onOpenInNewIncognitoTab(String url)39     public void onOpenInNewIncognitoTab(String url) {
40     }
41 
42     @Override
onOpenImageUrl(String url, Referrer referrer)43     public void onOpenImageUrl(String url, Referrer referrer) {
44     }
45 
46     @Override
onOpenImageInNewTab(String url, Referrer referrer)47     public void onOpenImageInNewTab(String url, Referrer referrer) {
48     }
49 
50     @Override
onSaveToClipboard(String text, boolean isUrl)51     public void onSaveToClipboard(String text, boolean isUrl) {
52     }
53 
54     @Override
onSaveImageToClipboard(String url)55     public void onSaveImageToClipboard(String url) {
56     }
57 
58     @Override
onSearchByImageInNewTab()59     public void onSearchByImageInNewTab() {
60     }
61 }
62