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

Unified Diff: blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpNavigationController.java

Issue 2059443002: Java versions of BlimpContents[,Observer] and BlimpNavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-with-blimp
Patch Set: git merge origin/master - track master Created 4 years, 6 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/core/public/android/java/src/org/chromium/blimp/core_public/BlimpNavigationController.java
diff --git a/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpNavigationController.java b/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpNavigationController.java
new file mode 100644
index 0000000000000000000000000000000000000000..2e60b97d2527c00097ae451b1087be54b3c64408
--- /dev/null
+++ b/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpNavigationController.java
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.blimp.core_public;
+
+/**
+ * BlimpNavigationController is the Java representation of a native BlimpNavigationController
+ * object.
+ *
+ * The BlimpNavigationController maintains the back-forward list for a {@link BlimpContents} and
+ * manages all navigation within that list.
+ *
+ * Each BlimpNavigationController belongs to one {@link BlimpContents}, and each
+ * {@link BlimpContents} has exactly one BlimpNavigationController.
+ */
+public interface BlimpNavigationController {
+
+ /**
+ * Calls to loadUrl informs the engine that it should start navigating to the provided |url|.
+ * @param url the URL to start navigation to.
+ */
+ void loadUrl(String url);
+
+ /**
+ * Retrieves the URL of the currently selected item in the navigation list.
+ */
+ String getUrl();
+}

Powered by Google App Engine
This is Rietveld 408576698