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

Unified Diff: blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java

Issue 2058263002: Tied up BlimpNavigationController to NavigationFeature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_core
Patch Set: Removed BlimpContentsTest.java Created 4 years, 4 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: blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java
diff --git a/blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java b/blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java
index e7f47962e4763a61eb1bc959f0034f391dd6c871..f7f659bccea52e0b0f785748b81565857873e70b 100644
--- a/blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java
+++ b/blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpNavigationController.java
@@ -26,4 +26,32 @@ public interface BlimpNavigationController {
* Retrieves the URL of the currently selected item in the navigation list.
*/
String getUrl();
+
+ /**
+ * @return Whether back navigation is possible from the "current entry".
+ */
+ boolean canGoBack();
+
+ /**
+ * @return Whether forward navigation is possible from the "current entry".
+ */
+ boolean canGoForward();
+
+ /**
+ * Goes to the navigation entry before the current one.
+ */
+ void goBack();
+
+ /**
+ * Goes to the navigation entry following the current one.
+ */
+ void goForward();
+
+ /**
+ * Reload the current page. If |checkForRepost| is true and the current entry has POST data the
+ * user is prompted to see if they really want to reload the page. In nearly all cases pass in
+ * true.
+ * @param checkForRepost Prompts the user if they want to reload the page.
+ */
+ public void reload(boolean checkForRepost);
}

Powered by Google App Engine
This is Rietveld 408576698