| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // Shows the disambiguation popup | 275 // Shows the disambiguation popup |
| 276 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 276 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
| 277 // |zoomed_bitmap| --> magnified image of potential touch targets | 277 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 278 void ShowDisambiguationPopup( | 278 void ShowDisambiguationPopup( |
| 279 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 279 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
| 280 | 280 |
| 281 // Creates a java-side touch event, used for injecting touch event for | 281 // Creates a java-side touch event, used for injecting touch event for |
| 282 // testing/benchmarking purposes | 282 // testing/benchmarking purposes |
| 283 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 283 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
| 284 | 284 |
| 285 // Creates a java-side touch gesture, e.g. used by | |
| 286 // chrome.gpuBenchmarking.smoothScrollBy. | |
| 287 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture( | |
| 288 int start_x, int start_y, int delta_x, int delta_y); | |
| 289 | |
| 290 // Creates a java-side touch gesture with two pointers, e.g. used by | |
| 291 // chrome.gpuBenchmarking.pinchBy. | |
| 292 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture( | |
| 293 int start_x0, int start_y0, int delta_x0, int delta_y0, | |
| 294 int start_x1, int start_y1, int delta_x1, int delta_y1); | |
| 295 | |
| 296 // Notifies the java object about the external surface, requesting for one if | 285 // Notifies the java object about the external surface, requesting for one if |
| 297 // necessary. | 286 // necessary. |
| 298 void NotifyExternalSurface( | 287 void NotifyExternalSurface( |
| 299 int player_id, bool is_request, const gfx::RectF& rect); | 288 int player_id, bool is_request, const gfx::RectF& rect); |
| 300 | 289 |
| 301 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 290 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 302 | 291 |
| 303 // Returns the context that the ContentViewCore was created with, it would | 292 // Returns the context that the ContentViewCore was created with, it would |
| 304 // typically be an Activity context for an on screen view. | 293 // typically be an Activity context for an on screen view. |
| 305 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 294 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 int device_orientation_; | 384 int device_orientation_; |
| 396 | 385 |
| 397 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 386 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 398 }; | 387 }; |
| 399 | 388 |
| 400 bool RegisterContentViewCore(JNIEnv* env); | 389 bool RegisterContentViewCore(JNIEnv* env); |
| 401 | 390 |
| 402 } // namespace content | 391 } // namespace content |
| 403 | 392 |
| 404 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 393 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |