| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // Shows the disambiguation popup | 284 // Shows the disambiguation popup |
| 285 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 285 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
| 286 // |zoomed_bitmap| --> magnified image of potential touch targets | 286 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 287 void ShowDisambiguationPopup( | 287 void ShowDisambiguationPopup( |
| 288 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 288 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
| 289 | 289 |
| 290 // Creates a java-side touch event, used for injecting touch event for | 290 // Creates a java-side touch event, used for injecting touch event for |
| 291 // testing/benchmarking purposes | 291 // testing/benchmarking purposes |
| 292 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 292 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
| 293 | 293 |
| 294 // Notifies the java object about the external surface, requesting for one if | 294 void RequestExternalVideoSurface(int player_id); |
| 295 // necessary. | 295 void ReleaseExternalVideoSurface(int player_id); |
| 296 void NotifyExternalSurface( | 296 void NotifyExternalVideoSurfacePositionChanged(int player_id, |
| 297 int player_id, bool is_request, const gfx::RectF& rect); | 297 const gfx::RectF& rect); |
| 298 | 298 |
| 299 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 299 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 300 | 300 |
| 301 // Returns the context that the ContentViewCore was created with, it would | 301 // Returns the context that the ContentViewCore was created with, it would |
| 302 // typically be an Activity context for an on screen view. | 302 // typically be an Activity context for an on screen view. |
| 303 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 303 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| 304 | 304 |
| 305 // Returns True if the given media should be blocked to load. | 305 // Returns True if the given media should be blocked to load. |
| 306 bool ShouldBlockMediaRequest(const GURL& url); | 306 bool ShouldBlockMediaRequest(const GURL& url); |
| 307 | 307 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 GestureEventPacket pending_gesture_packet_; | 409 GestureEventPacket pending_gesture_packet_; |
| 410 | 410 |
| 411 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 411 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 bool RegisterContentViewCore(JNIEnv* env); | 414 bool RegisterContentViewCore(JNIEnv* env); |
| 415 | 415 |
| 416 } // namespace content | 416 } // namespace content |
| 417 | 417 |
| 418 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 418 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |