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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 jint load_url_type, | 86 jint load_url_type, |
87 jint transition_type, | 87 jint transition_type, |
88 jstring j_referrer_url, | 88 jstring j_referrer_url, |
89 jint referrer_policy, | 89 jint referrer_policy, |
90 jint ua_override_option, | 90 jint ua_override_option, |
91 jstring extra_headers, | 91 jstring extra_headers, |
92 jbyteArray post_data, | 92 jbyteArray post_data, |
93 jstring base_url_for_data_url, | 93 jstring base_url_for_data_url, |
94 jstring virtual_url_for_data_url, | 94 jstring virtual_url_for_data_url, |
95 jboolean can_load_local_resources, | 95 jboolean can_load_local_resources, |
96 jboolean is_renderer_initiated); | 96 jboolean is_renderer_initiated, |
| 97 jstring virtual_url_for_transition); |
97 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; | 98 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; |
98 jboolean IsIncognito(JNIEnv* env, jobject obj); | 99 jboolean IsIncognito(JNIEnv* env, jobject obj); |
99 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); | 100 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); |
100 jboolean OnTouchEvent(JNIEnv* env, | 101 jboolean OnTouchEvent(JNIEnv* env, |
101 jobject obj, | 102 jobject obj, |
102 jobject motion_event, | 103 jobject motion_event, |
103 jlong time_ms, | 104 jlong time_ms, |
104 jint android_action, | 105 jint android_action, |
105 jint pointer_count, | 106 jint pointer_count, |
106 jint history_size, | 107 jint history_size, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); | 240 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj); |
240 | 241 |
241 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 242 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
242 | 243 |
243 // -------------------------------------------------------------------------- | 244 // -------------------------------------------------------------------------- |
244 // Public methods that call to Java via JNI | 245 // Public methods that call to Java via JNI |
245 // -------------------------------------------------------------------------- | 246 // -------------------------------------------------------------------------- |
246 | 247 |
247 // This method is invoked when the request is deferred immediately after | 248 // This method is invoked when the request is deferred immediately after |
248 // receiving response headers. | 249 // receiving response headers. |
249 void DidDeferAfterResponseStarted(); | 250 void DidDeferAfterResponseStarted(const GURL& transition_url); |
250 | 251 |
251 // This method is invoked when a navigation transition is detected, to | 252 // This method is invoked when a navigation transition is detected, to |
252 // determine if the embedder intends to handle it. | 253 // determine if the embedder intends to handle it. |
253 bool WillHandleDeferAfterResponseStarted(); | 254 bool WillHandleDeferAfterResponseStarted(); |
254 | 255 |
255 void OnSmartClipDataExtracted(const gfx::Rect& clip_rect, | 256 void OnSmartClipDataExtracted(const gfx::Rect& clip_rect, |
256 const base::string16& result); | 257 const base::string16& result); |
257 | 258 |
258 // Creates a popup menu with |items|. | 259 // Creates a popup menu with |items|. |
259 // |multiple| defines if it should support multi-select. | 260 // |multiple| defines if it should support multi-select. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 java_bridge_dispatcher_host_manager_; | 407 java_bridge_dispatcher_host_manager_; |
407 | 408 |
408 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 409 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
409 }; | 410 }; |
410 | 411 |
411 bool RegisterContentViewCore(JNIEnv* env); | 412 bool RegisterContentViewCore(JNIEnv* env); |
412 | 413 |
413 } // namespace content | 414 } // namespace content |
414 | 415 |
415 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 416 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |