| 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 import org.chromium.content.browser.ContentViewCore; | |
| 10 import org.chromium.content_public.browser.WebContents; | 9 import org.chromium.content_public.browser.WebContents; |
| 11 | 10 |
| 12 /** | 11 /** |
| 13 * An implementation of the {@link TabObserver} which has empty implementations
of all methods. | 12 * An implementation of the {@link TabObserver} which has empty implementations
of all methods. |
| 14 */ | 13 */ |
| 15 public class EmptyTabObserver implements TabObserver { | 14 public class EmptyTabObserver implements TabObserver { |
| 16 | 15 |
| 17 @Override | 16 @Override |
| 18 public void onShown(Tab tab) { } | 17 public void onShown(Tab tab) { } |
| 19 | 18 |
| 20 @Override | 19 @Override |
| 21 public void onHidden(Tab tab) { } | 20 public void onHidden(Tab tab) { } |
| 22 | 21 |
| 23 @Override | 22 @Override |
| 24 public void onClosingStateChanged(Tab tab, boolean closing) { } | 23 public void onClosingStateChanged(Tab tab, boolean closing) { } |
| 25 | 24 |
| 26 @Override | 25 @Override |
| 27 public void onDestroyed(Tab tab) { } | 26 public void onDestroyed(Tab tab) { } |
| 28 | 27 |
| 29 @Override | 28 @Override |
| 30 public void onContentChanged(Tab tab) { } | 29 public void onContentChanged(Tab tab) { } |
| 31 | 30 |
| 32 @Override | 31 @Override |
| 33 public void onOverlayContentViewCoreAdded(Tab tab, ContentViewCore content)
{ } | |
| 34 | |
| 35 @Override | |
| 36 public void onOverlayContentViewCoreRemoved(Tab tab, ContentViewCore content
) { } | |
| 37 | |
| 38 @Override | |
| 39 public void onLoadUrl(Tab tab, String url, int loadType) { } | 32 public void onLoadUrl(Tab tab, String url, int loadType) { } |
| 40 | 33 |
| 41 @Override | 34 @Override |
| 42 public void onPageLoadStarted(Tab tab) { } | 35 public void onPageLoadStarted(Tab tab) { } |
| 43 | 36 |
| 44 @Override | 37 @Override |
| 45 public void onPageLoadFinished(Tab tab) { } | 38 public void onPageLoadFinished(Tab tab) { } |
| 46 | 39 |
| 47 @Override | 40 @Override |
| 48 public void onPageLoadFailed(Tab tab, int errorCode) { } | 41 public void onPageLoadFailed(Tab tab, int errorCode) { } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 @Override | 111 @Override |
| 119 public void onDidStartNavigationToPendingEntry(Tab tab, String url) { } | 112 public void onDidStartNavigationToPendingEntry(Tab tab, String url) { } |
| 120 | 113 |
| 121 @Override | 114 @Override |
| 122 public void onBackgroundColorChanged(Tab tab, int color) { } | 115 public void onBackgroundColorChanged(Tab tab, int color) { } |
| 123 | 116 |
| 124 @Override | 117 @Override |
| 125 public void webContentsCreated(Tab tab, WebContents sourceWebContents, long
openerRenderFrameId, | 118 public void webContentsCreated(Tab tab, WebContents sourceWebContents, long
openerRenderFrameId, |
| 126 String frameName, String targetUrl, WebContents newWebContents) { } | 119 String frameName, String targetUrl, WebContents newWebContents) { } |
| 127 } | 120 } |
| OLD | NEW |