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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentDelegate.java

Issue 1326643003: Overlay content is its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-panel-functionality
Patch Set: flip booleans for testing renamed api Created 5 years, 3 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentProgressObserver.java » ('j') | 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/compositor/bottombar/OverlayContentDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..d006a88d5dfde7d878666e84b89cf41a8ac6666a
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentDelegate.java
@@ -0,0 +1,77 @@
+// Copyright 2015 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.chrome.browser.compositor.bottombar;
+
+import org.chromium.chrome.browser.externalnav.ExternalNavigationHandler;
+import org.chromium.components.navigation_interception.NavigationParams;
+import org.chromium.content.browser.ContentViewCore;
+
+
+/**
+ * An base class for tracking events on the overlay panel.
+ */
+public class OverlayContentDelegate {
+
+ /**
+ * Called when the panel's ContentViewCore navigates in the main frame.
+ * @param url The URL being navigated to.
+ */
+ public void onMainFrameLoadStarted(String url) {}
+
+ /**
+ * Called when a page navigation results in an error page.
+ * @param url The URL that caused the failure.
+ * @param isFailure If the loaded page is an error page.
+ */
+ public void onMainFrameNavigation(String url, boolean isFailure) {}
+
+ /**
+ * Called when content started loading in the panel.
+ * @param url The URL that is loading.
+ */
+ public void onContentLoadStarted(String url) {}
+
+ /**
+ * Called when the panel content has finished loading.
+ */
+ public void onContentLoadFinished() {}
+
+ /**
+ * Determine if a particular navigation should be intercepted.
+ * @param externalNavHandler External navigation handler for the activity the panel is in.
+ * @param navigationParams The navigation params for the current navigation.
+ * @return True if the navigation should be intercepted.
+ */
+ public boolean shouldInterceptNavigation(ExternalNavigationHandler externalNavHandler,
+ NavigationParams navigationParams) {
+ return true;
+ }
+
+ // ============================================================================================
+ // ContentViewCore related events.
+ // ============================================================================================
+
+ /**
+ * Called then the content visibility is changed.
+ * @param isVisible True if the content is visible.
+ */
+ public void onVisibilityChanged(boolean isVisible) {}
+
+ /**
+ * Called once the ContentViewCore has been seen.
+ */
+ public void onContentViewSeen() {}
+
+ /**
+ * Called once the ContentViewCore has been created and set up completely.
+ * @param contentViewCore The contentViewCore that was created.
+ */
+ public void onContentViewCreated(ContentViewCore contentViewCore) {}
+
+ /**
+ * Called once the ContentViewCore has been destroyed.
+ */
+ public void onContentViewDestroyed() {}
+}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayContentProgressObserver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698