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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 bool enable_showing, | 210 bool enable_showing, |
211 bool animate); | 211 bool animate); |
212 void ShowImeIfNeeded(JNIEnv* env, jobject obj); | 212 void ShowImeIfNeeded(JNIEnv* env, jobject obj); |
213 | 213 |
214 void ShowInterstitialPage(JNIEnv* env, | 214 void ShowInterstitialPage(JNIEnv* env, |
215 jobject obj, | 215 jobject obj, |
216 jstring jurl, | 216 jstring jurl, |
217 jint delegate); | 217 jint delegate); |
218 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 218 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |
219 | 219 |
220 void AttachExternalVideoSurface(JNIEnv* env, | |
221 jobject obj, | |
222 jint player_id, | |
223 jobject jsurface); | |
224 void DetachExternalVideoSurface(JNIEnv* env, jobject obj, jint player_id); | |
225 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); | 220 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); |
226 void SendActionAfterDoubleTapUma(JNIEnv* env, | 221 void SendActionAfterDoubleTapUma(JNIEnv* env, |
227 jobject obj, | 222 jobject obj, |
228 jint type, | 223 jint type, |
229 jboolean has_delay, | 224 jboolean has_delay, |
230 jint count); | 225 jint count); |
231 void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); | 226 void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); |
232 | 227 |
233 void ExtractSmartClipData(JNIEnv* env, | 228 void ExtractSmartClipData(JNIEnv* env, |
234 jobject obj, | 229 jobject obj, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Shows the disambiguation popup | 279 // Shows the disambiguation popup |
285 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 280 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
286 // |zoomed_bitmap| --> magnified image of potential touch targets | 281 // |zoomed_bitmap| --> magnified image of potential touch targets |
287 void ShowDisambiguationPopup( | 282 void ShowDisambiguationPopup( |
288 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 283 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
289 | 284 |
290 // Creates a java-side touch event, used for injecting touch event for | 285 // Creates a java-side touch event, used for injecting touch event for |
291 // testing/benchmarking purposes | 286 // testing/benchmarking purposes |
292 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 287 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
293 | 288 |
294 // Notifies the java object about the external surface, requesting for one if | |
295 // necessary. | |
296 void NotifyExternalSurface( | |
297 int player_id, bool is_request, const gfx::RectF& rect); | |
298 | |
299 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 289 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
300 | 290 |
301 // Returns the context that the ContentViewCore was created with, it would | 291 // Returns the context that the ContentViewCore was created with, it would |
302 // typically be an Activity context for an on screen view. | 292 // typically be an Activity context for an on screen view. |
303 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 293 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
304 | 294 |
305 // Returns True if the given media should be blocked to load. | 295 // Returns True if the given media should be blocked to load. |
306 bool ShouldBlockMediaRequest(const GURL& url); | 296 bool ShouldBlockMediaRequest(const GURL& url); |
307 | 297 |
308 void DidStopFlinging(); | 298 void DidStopFlinging(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 GestureEventPacket pending_gesture_packet_; | 399 GestureEventPacket pending_gesture_packet_; |
410 | 400 |
411 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 401 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
412 }; | 402 }; |
413 | 403 |
414 bool RegisterContentViewCore(JNIEnv* env); | 404 bool RegisterContentViewCore(JNIEnv* env); |
415 | 405 |
416 } // namespace content | 406 } // namespace content |
417 | 407 |
418 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 408 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |