Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / android / java / src / org / chromium / chrome / browser / EmptyTabObserver.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;
6
7 import android.view.ContextMenu;
8
9 /**
10  * An implementation of the {@link TabObserver} which has empty implementations of all methods.
11  */
12 public class EmptyTabObserver implements TabObserver {
13
14     @Override
15     public void onDestroyed(TabBase tab) { }
16
17     @Override
18     public void onContentChanged(TabBase tab) { }
19
20     @Override
21     public void onFaviconUpdated(TabBase tab) { }
22
23     @Override
24     public void onTitleUpdated(TabBase tab) { }
25
26     @Override
27     public void onUrlUpdated(TabBase tab) { }
28
29     @Override
30     public void onWebContentsSwapped(TabBase tab, boolean didStartLoad, boolean didFinishLoad) { }
31
32     @Override
33     public void onContextMenuShown(TabBase tab, ContextMenu menu) { }
34
35     @Override
36     public void onLoadProgressChanged(TabBase tab, int progress) { }
37
38     @Override
39     public void onUpdateUrl(TabBase tab, String url) { }
40
41     @Override
42     public void onToggleFullscreenMode(TabBase tab, boolean enable) { }
43
44     @Override
45     public void onDidFailLoad(TabBase tab, boolean isProvisionalLoad, boolean isMainFrame,
46             int errorCode, String description, String failingUrl) { }
47 }