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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 const ViewHostMsg_SelectionBounds_Params& params); | 271 const ViewHostMsg_SelectionBounds_Params& params); |
272 | 272 |
273 void StartContentIntent(const GURL& content_url); | 273 void StartContentIntent(const GURL& content_url); |
274 | 274 |
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 |
| 282 // testing/benchmarking purposes |
| 283 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
| 284 |
281 // Creates a java-side touch gesture, e.g. used by | 285 // Creates a java-side touch gesture, e.g. used by |
282 // chrome.gpuBenchmarking.smoothScrollBy. | 286 // chrome.gpuBenchmarking.smoothScrollBy. |
283 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture( | 287 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture( |
284 int start_x, int start_y, int delta_x, int delta_y); | 288 int start_x, int start_y, int delta_x, int delta_y); |
285 | 289 |
286 // Creates a java-side touch gesture with two pointers, e.g. used by | 290 // Creates a java-side touch gesture with two pointers, e.g. used by |
287 // chrome.gpuBenchmarking.pinchBy. | 291 // chrome.gpuBenchmarking.pinchBy. |
288 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture( | 292 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture( |
289 int start_x0, int start_y0, int delta_x0, int delta_y0, | 293 int start_x0, int start_y0, int delta_x0, int delta_y0, |
290 int start_x1, int start_y1, int delta_x1, int delta_y1); | 294 int start_x1, int start_y1, int delta_x1, int delta_y1); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 int device_orientation_; | 392 int device_orientation_; |
389 | 393 |
390 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 394 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
391 }; | 395 }; |
392 | 396 |
393 bool RegisterContentViewCore(JNIEnv* env); | 397 bool RegisterContentViewCore(JNIEnv* env); |
394 | 398 |
395 } // namespace content | 399 } // namespace content |
396 | 400 |
397 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 401 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |