OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.view.ContextMenu; | 7 import android.view.ContextMenu; |
8 | 8 |
9 /** | 9 /** |
10 * An implementation of the {@link TabObserver} which has empty implementations
of all methods. | 10 * An implementation of the {@link TabObserver} which has empty implementations
of all methods. |
11 */ | 11 */ |
12 public class EmptyTabObserver implements TabObserver { | 12 public class EmptyTabObserver implements TabObserver { |
13 | 13 |
14 @Override | 14 @Override |
15 public void onDestroyed(TabBase tab) { } | 15 public void onDestroyed(Tab tab) { } |
16 | 16 |
17 @Override | 17 @Override |
18 public void onContentChanged(TabBase tab) { } | 18 public void onContentChanged(Tab tab) { } |
19 | 19 |
20 @Override | 20 @Override |
21 public void onFaviconUpdated(TabBase tab) { } | 21 public void onFaviconUpdated(Tab tab) { } |
22 | 22 |
23 @Override | 23 @Override |
24 public void onTitleUpdated(TabBase tab) { } | 24 public void onTitleUpdated(Tab tab) { } |
25 | 25 |
26 @Override | 26 @Override |
27 public void onUrlUpdated(TabBase tab) { } | 27 public void onUrlUpdated(Tab tab) { } |
28 | 28 |
29 @Override | 29 @Override |
30 public void onWebContentsSwapped(TabBase tab, boolean didStartLoad, boolean
didFinishLoad) { } | 30 public void onWebContentsSwapped(Tab tab, boolean didStartLoad, boolean didF
inishLoad) { } |
31 | 31 |
32 @Override | 32 @Override |
33 public void onContextMenuShown(TabBase tab, ContextMenu menu) { } | 33 public void onContextMenuShown(Tab tab, ContextMenu menu) { } |
34 | 34 |
35 @Override | 35 @Override |
36 public void onLoadProgressChanged(TabBase tab, int progress) { } | 36 public void onLoadProgressChanged(Tab tab, int progress) { } |
37 | 37 |
38 @Override | 38 @Override |
39 public void onUpdateUrl(TabBase tab, String url) { } | 39 public void onUpdateUrl(Tab tab, String url) { } |
40 | 40 |
41 @Override | 41 @Override |
42 public void onToggleFullscreenMode(TabBase tab, boolean enable) { } | 42 public void onToggleFullscreenMode(Tab tab, boolean enable) { } |
43 | 43 |
44 @Override | 44 @Override |
45 public void onDidFailLoad(TabBase tab, boolean isProvisionalLoad, boolean is
MainFrame, | 45 public void onDidFailLoad(Tab tab, boolean isProvisionalLoad, boolean isMain
Frame, |
46 int errorCode, String description, String failingUrl) { } | 46 int errorCode, String description, String failingUrl) { } |
47 } | 47 } |
OLD | NEW |