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.
5 package org.chromium.chrome.browser;
7 import android.view.ContextMenu;
10 * An implementation of the {@link TabObserver} which has empty implementations of all methods.
12 public class EmptyTabObserver implements TabObserver {
15 public void onDestroyed(Tab tab) { }
18 public void onContentChanged(Tab tab) { }
21 public void onLoadUrl(Tab tab, String url, int loadType) { }
24 public void onFaviconUpdated(Tab tab) { }
27 public void onTitleUpdated(Tab tab) { }
30 public void onUrlUpdated(Tab tab) { }
33 public void onSSLStateUpdated(Tab tab) { }
36 public void onWebContentsSwapped(Tab tab, boolean didStartLoad, boolean didFinishLoad) { }
39 public void onContextMenuShown(Tab tab, ContextMenu menu) { }
42 public void onWebContentsInstantSupportDisabled() { }
45 public void onLoadStarted(Tab tab) { }
48 public void onLoadStopped(Tab tab) { }
51 public void onLoadProgressChanged(Tab tab, int progress) { }
54 public void onUpdateUrl(Tab tab, String url) { }
57 public void onToggleFullscreenMode(Tab tab, boolean enable) { }
60 public void onDidFailLoad(Tab tab, boolean isProvisionalLoad, boolean isMainFrame,
61 int errorCode, String description, String failingUrl) { }
64 public void onDidStartProvisionalLoadForFrame(Tab tab, long frameId, long parentFrameId,
65 boolean isMainFrame, String validatedUrl, boolean isErrorPage,
66 boolean isIframeSrcdoc) { }
69 public void onDidNavigateMainFrame(Tab tab, String url, String baseUrl,
70 boolean isNavigationToDifferentPage, boolean isFragmentNavigation, int statusCode) { }
73 public void onDidChangeThemeColor(int color) { }