OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 jobject obj) const; | 43 jobject obj) const; |
44 void Stop(JNIEnv* env, jobject obj); | 44 void Stop(JNIEnv* env, jobject obj); |
45 jint GetBackgroundColor(JNIEnv* env, jobject obj); | 45 jint GetBackgroundColor(JNIEnv* env, jobject obj); |
46 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; | 46 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; |
47 jboolean IsIncognito(JNIEnv* env, jobject obj); | 47 jboolean IsIncognito(JNIEnv* env, jobject obj); |
48 | 48 |
49 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); | 49 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); |
50 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); | 50 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); |
51 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup); | 51 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup); |
52 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector); | 52 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector); |
| 53 void ClearNavigationTransitionData(JNIEnv* env, jobject jobj); |
53 | 54 |
54 // This method is invoked when the request is deferred immediately after | 55 // This method is invoked when the request is deferred immediately after |
55 // receiving response headers. | 56 // receiving response headers. |
56 void DidDeferAfterResponseStarted(const TransitionLayerData& transition_data); | 57 void DidDeferAfterResponseStarted(const TransitionLayerData& transition_data); |
57 | 58 |
58 // This method is invoked when a navigation transition is detected, to | 59 // This method is invoked when a navigation transition is detected, to |
59 // determine if the embedder intends to handle it. | 60 // determine if the embedder intends to handle it. |
60 bool WillHandleDeferAfterResponseStarted(); | 61 bool WillHandleDeferAfterResponseStarted(); |
61 | 62 |
62 // This method is invoked when a navigation transition has started. | 63 // This method is invoked when a navigation transition has started. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 WebContents* web_contents_; | 97 WebContents* web_contents_; |
97 NavigationControllerAndroid navigation_controller_; | 98 NavigationControllerAndroid navigation_controller_; |
98 base::android::ScopedJavaGlobalRef<jobject> obj_; | 99 base::android::ScopedJavaGlobalRef<jobject> obj_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 101 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace content | 104 } // namespace content |
104 | 105 |
105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
OLD | NEW |