OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 191 matching lines...) Loading... |
202 | 202 |
203 void ExtractSmartClipData(JNIEnv* env, | 203 void ExtractSmartClipData(JNIEnv* env, |
204 jobject obj, | 204 jobject obj, |
205 jint x, | 205 jint x, |
206 jint y, | 206 jint y, |
207 jint width, | 207 jint width, |
208 jint height); | 208 jint height); |
209 | 209 |
210 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); | 210 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); |
211 | 211 |
| 212 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup); |
| 213 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector); |
| 214 |
212 // Notifies the main frame that it can continue navigation (if it was deferred | 215 // Notifies the main frame that it can continue navigation (if it was deferred |
213 // immediately at first response). | 216 // immediately at first response). |
214 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); | 217 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj); |
215 | 218 |
216 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); | 219 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); |
217 | 220 |
218 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 221 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
219 | 222 |
220 // -------------------------------------------------------------------------- | 223 // -------------------------------------------------------------------------- |
221 // Public methods that call to Java via JNI | 224 // Public methods that call to Java via JNI |
222 // -------------------------------------------------------------------------- | 225 // -------------------------------------------------------------------------- |
223 | 226 |
224 // This method is invoked when the request is deferred immediately after | 227 // This method is invoked when the request is deferred immediately after |
225 // receiving response headers. | 228 // receiving response headers. |
226 void DidDeferAfterResponseStarted( | 229 void DidDeferAfterResponseStarted( |
227 const scoped_refptr<net::HttpResponseHeaders>& headers, | 230 const TransitionLayerData& transition_data); |
228 const GURL& url); | |
229 | 231 |
230 // This method is invoked when a navigation transition is detected, to | 232 // This method is invoked when a navigation transition is detected, to |
231 // determine if the embedder intends to handle it. | 233 // determine if the embedder intends to handle it. |
232 bool WillHandleDeferAfterResponseStarted(); | 234 bool WillHandleDeferAfterResponseStarted(); |
233 | 235 |
234 // This method is invoked when a navigation transition has started. | 236 // This method is invoked when a navigation transition has started. |
235 void DidStartNavigationTransitionForFrame(int64 frame_id); | 237 void DidStartNavigationTransitionForFrame(int64 frame_id); |
236 | 238 |
237 void OnSmartClipDataExtracted(const base::string16& text, | 239 void OnSmartClipDataExtracted(const base::string16& text, |
238 const base::string16& html, | 240 const base::string16& html, |
(...skipping 152 matching lines...) Loading... |
391 java_bridge_dispatcher_host_; | 393 java_bridge_dispatcher_host_; |
392 | 394 |
393 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 395 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
394 }; | 396 }; |
395 | 397 |
396 bool RegisterContentViewCore(JNIEnv* env); | 398 bool RegisterContentViewCore(JNIEnv* env); |
397 | 399 |
398 } // namespace content | 400 } // namespace content |
399 | 401 |
400 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 402 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |