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

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

Issue 638133003: Add DidNavigateMainFrame to the TabObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/Tab.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
index f7a0faf3dbef4f8433437d13739e1d5f77140d4b..cf95aa4ffba481de7ba5ffa751b756ccd7c97b75 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
@@ -163,6 +163,21 @@ public interface TabObserver {
Tab tab, long frameId, boolean isMainFrame, String url, int transitionType);
/**
+ * Called when the main frame of the page has committed.
+ *
+ * @param tab The notifying {@link Tab}.
+ * @param url The validated url for the page.
+ * @param baseUrl The validated base url for the page.
+ * @param isNavigationToDifferentPage Whether the main frame navigated to a different page.
+ * @param isFragmentNavigation Whether the main frame navigation did not cause changes
+ * to the document (for example scrolling to a named anchor
+ * or PopState).
+ * @param statusCode The HTTP status code of the navigation.
+ */
+ public void onDidNavigateMainFrame(Tab tab, String url, String baseUrl,
+ boolean isNavigationToDifferentPage, boolean isFragmentNavigation, int statusCode);
+
+ /**
* Called when the theme color is changed
* @param color the new color in ARGB format.
*/
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/Tab.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698