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

Unified Diff: content/browser/web_contents/web_contents_android.h

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/browser/web_contents/web_contents_android.h
diff --git a/content/browser/web_contents/web_contents_android.h b/content/browser/web_contents/web_contents_android.h
index add9637f5290b872092167ca08b2d1a4d5d02e5d..e15ece25d13be8515236f07502318a77d3850462 100644
--- a/content/browser/web_contents/web_contents_android.h
+++ b/content/browser/web_contents/web_contents_android.h
@@ -13,11 +13,13 @@
#include "base/supports_user_data.h"
#include "content/browser/frame_host/navigation_controller_android.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
+#include "content/browser/transition_request_manager.h"
#include "content/common/content_export.h"
namespace content {
class WebContents;
+struct TransitionLayerData;
// Android wrapper around WebContents that provides safer passage from java and
// back to native and provides java with a means of communicating with its
@@ -41,6 +43,25 @@ class CONTENT_EXPORT WebContentsAndroid
jobject obj) const;
void Stop(JNIEnv* env, jobject obj);
jint GetBackgroundColor(JNIEnv* env, jobject obj);
+ base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const;
+ jboolean IsIncognito(JNIEnv* env, jobject obj);
+
+ void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj);
+ void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj);
+ void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup);
+ void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector);
+
+ // This method is invoked when the request is deferred immediately after
+ // receiving response headers.
+ void DidDeferAfterResponseStarted(const TransitionLayerData& transition_data);
+
+ // This method is invoked when a navigation transition is detected, to
+ // determine if the embedder intends to handle it.
+ bool WillHandleDeferAfterResponseStarted();
+
+ // This method is invoked when a navigation transition has started.
+ void DidStartNavigationTransitionForFrame(int64 frame_id);
+
void OnHide(JNIEnv* env, jobject obj);
void OnShow(JNIEnv* env, jobject obj);
void PauseVideo();
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698