Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / android / java / src / org / chromium / chrome / browser / contextmenu / EmptyChromeContextMenuItemDelegate.java
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
15     public boolean isIncognito() {
16         return false;
17     }
18
19     @Override
20     public boolean isIncognitoSupported() {
21         return false;
22     }
23
24     @Override
25     public boolean canLoadOriginalImage() {
26         return false;
27     }
28
29     @Override
30     public boolean startDownload(boolean isLink) {
31         return false;
32     }
33
34     @Override
35     public void onOpenInNewTab(String url, Referrer referrer) {
36     }
37
38     @Override
39     public void onOpenInNewIncognitoTab(String url) {
40     }
41
42     @Override
43     public void onOpenImageUrl(String url, Referrer referrer) {
44     }
45
46     @Override
47     public void onOpenImageInNewTab(String url, Referrer referrer) {
48     }
49
50     @Override
51     public void onSaveToClipboard(String text, boolean isUrl) {
52     }
53
54     @Override
55     public void onSaveImageToClipboard(String url) {
56     }
57
58     @Override
59     public void onSearchByImageInNewTab() {
60     }
61
62     @Override
63     public String getPageUrl() {
64         return "";
65     }
66 }