Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 26664002: SyntheticGestureTarget implementation for injecting synthetic input events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile_err Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const ViewHostMsg_SelectionBounds_Params& params); 264 const ViewHostMsg_SelectionBounds_Params& params);
265 265
266 void StartContentIntent(const GURL& content_url); 266 void StartContentIntent(const GURL& content_url);
267 267
268 // Shows the disambiguation popup 268 // Shows the disambiguation popup
269 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 269 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
270 // |zoomed_bitmap| --> magnified image of potential touch targets 270 // |zoomed_bitmap| --> magnified image of potential touch targets
271 void ShowDisambiguationPopup( 271 void ShowDisambiguationPopup(
272 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 272 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
273 273
274 // Creates a java-side touch event, used for injecting touch event for
275 // testing/benchmarking purposes
276 base::android::ScopedJavaLocalRef<jobject> CreateSyntheticTouchEvent();
277
274 // Creates a java-side touch gesture, e.g. used by 278 // Creates a java-side touch gesture, e.g. used by
275 // chrome.gpuBenchmarking.smoothScrollBy. 279 // chrome.gpuBenchmarking.smoothScrollBy.
276 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture( 280 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture(
277 int start_x, int start_y, int delta_x, int delta_y); 281 int start_x, int start_y, int delta_x, int delta_y);
278 282
279 // Creates a java-side touch gesture with two pointers, e.g. used by 283 // Creates a java-side touch gesture with two pointers, e.g. used by
280 // chrome.gpuBenchmarking.pinchBy. 284 // chrome.gpuBenchmarking.pinchBy.
281 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture( 285 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture(
282 int start_x0, int start_y0, int delta_x0, int delta_y0, 286 int start_x0, int start_y0, int delta_x0, int delta_y0,
283 int start_x1, int start_y1, int delta_x1, int delta_y1); 287 int start_x1, int start_y1, int delta_x1, int delta_y1);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698