Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6867)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/Tab.java

Issue 666673009: Removing NavigationClient dependencies from Tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the review comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index c48ba357ee14a3315c78c1992b0d229fc44ec15d..e3ed411413853a25db515f60e4a46eaee40705e9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -31,10 +31,8 @@ import org.chromium.chrome.browser.toolbar.ToolbarModel;
import org.chromium.content.browser.ContentView;
import org.chromium.content.browser.ContentViewClient;
import org.chromium.content.browser.ContentViewCore;
-import org.chromium.content.browser.NavigationClient;
import org.chromium.content.browser.WebContentsObserver;
import org.chromium.content_public.browser.LoadUrlParams;
-import org.chromium.content_public.browser.NavigationHistory;
import org.chromium.content_public.browser.WebContents;
import org.chromium.ui.base.Clipboard;
import org.chromium.ui.base.WindowAndroid;
@@ -72,7 +70,7 @@ import java.util.concurrent.atomic.AtomicInteger;
* unless special care is taken to make sure {@link Tab#incrementIdCounterTo(int)} is called with
* the correct value across all affected {@link Activity}s.
*/
-public class Tab implements NavigationClient {
+public class Tab {
public static final int INVALID_TAB_ID = -1;
/** Used for automatically generating tab ids. */
@@ -409,23 +407,6 @@ public class Tab implements NavigationClient {
if (getWebContents() != null) getWebContents().getNavigationController().goForward();
}
- @Override
- public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit) {
- if (getWebContents() != null) {
- return getWebContents().getNavigationController()
- .getDirectedNavigationHistory(isForward, itemLimit);
- } else {
- return new NavigationHistory();
- }
- }
-
- @Override
- public void goToNavigationIndex(int index) {
- if (getWebContents() != null) {
- getWebContents().getNavigationController().goToNavigationIndex(index);
- }
- }
-
/**
* Loads the current navigation if there is a pending lazy load (after tab restore).
*/

Powered by Google App Engine
This is Rietveld 408576698