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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed setHasPendingNavigationTransitionForTesting from CVC. Created 6 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: content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java b/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..d719b4325c4704e1f091a13a7006915f5bb5c4a3
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java
@@ -0,0 +1,42 @@
+// Copyright 2014 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.content_public.browser;
+
+/**
+ * An interface that allows the embedder to be notified of navigation transition
+ * related events and respond to them.
+ */
+public interface NavigationTransitionDelegate {
+ /**
+ * Called when the navigation is deferred immediately after the response started.
+ * @param markup The markup coming as part of response.
+ * @param cssSelector The CSS selectors, which is to be applied to transition layer's
+ * makrup.
+ * @param enteringColor The background color of the entering document, as a String
+ * representing a legal CSS color value. This is inserted into
+ * the transition layer's markup after the entering stylesheets
+ * have been applied.
+ */
+ public void didDeferAfterResponseStarted(
+ String markup, String cssSelector, String enteringColor);
+
+ /**
+ * Called when a navigation transition has been detected, and we need to check
+ * if it's supported.
+ */
+ public boolean willHandleDeferAfterResponseStarted();
+
+ /**
+ * Called when the navigation is deferred immediately after the response
+ * started.
+ */
+ public void addEnteringStylesheetToTransition(String stylesheet);
+
+ /**
+ * Notifies that a navigation transition is started for a given frame.
+ * @param frameId A positive, non-zero integer identifying the navigating frame.
+ */
+ public void didStartNavigationTransitionForFrame(long frameId);
+}

Powered by Google App Engine
This is Rietveld 408576698