root/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/EmptyChromeContextMenuItemDelegate.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. isIncognito
  2. isIncognitoSupported
  3. canLoadOriginalImage
  4. startDownload
  5. onOpenInNewTab
  6. onOpenInNewIncognitoTab
  7. onOpenImageUrl
  8. onOpenImageInNewTab
  9. onSaveToClipboard
  10. onSaveImageToClipboard
  11. onSearchByImageInNewTab

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.contextmenu;

import org.chromium.content_public.Referrer;

/**
 * An empty implementation of {@link ChromeContextMenuItemDelegate} to make overriding subsets of
 * the delegate methods easier.
 */
public class EmptyChromeContextMenuItemDelegate implements ChromeContextMenuItemDelegate {
    @Override
    public boolean isIncognito() {
        return false;
    }

    @Override
    public boolean isIncognitoSupported() {
        return false;
    }

    @Override
    public boolean canLoadOriginalImage() {
        return false;
    }

    @Override
    public boolean startDownload(boolean isLink) {
        return false;
    }

    @Override
    public void onOpenInNewTab(String url, Referrer referrer) {
    }

    @Override
    public void onOpenInNewIncognitoTab(String url) {
    }

    @Override
    public void onOpenImageUrl(String url, Referrer referrer) {
    }

    @Override
    public void onOpenImageInNewTab(String url, Referrer referrer) {
    }

    @Override
    public void onSaveToClipboard(String text, boolean isUrl) {
    }

    @Override
    public void onSaveImageToClipboard(String url) {
    }

    @Override
    public void onSearchByImageInNewTab() {
    }
}

/* [<][>][^][v][top][bottom][index][help] */