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

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: Created 7 years, 2 months 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const ViewHostMsg_SelectionBounds_Params& params); 258 const ViewHostMsg_SelectionBounds_Params& params);
259 259
260 void StartContentIntent(const GURL& content_url); 260 void StartContentIntent(const GURL& content_url);
261 261
262 // Shows the disambiguation popup 262 // Shows the disambiguation popup
263 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 263 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
264 // |zoomed_bitmap| --> magnified image of potential touch targets 264 // |zoomed_bitmap| --> magnified image of potential touch targets
265 void ShowDisambiguationPopup( 265 void ShowDisambiguationPopup(
266 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 266 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
267 267
268 // Creates a java-side touch event, used for injecting touch event for
269 // testing/benchmarking purposes
270 base::android::ScopedJavaLocalRef<jobject> CreateSyntheticTouchEvent();
271
268 // Creates a java-side touch gesture, e.g. used by 272 // Creates a java-side touch gesture, e.g. used by
269 // chrome.gpuBenchmarking.smoothScrollBy. 273 // chrome.gpuBenchmarking.smoothScrollBy.
270 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture( 274 base::android::ScopedJavaLocalRef<jobject> CreateOnePointTouchGesture(
271 int start_x, int start_y, int delta_x, int delta_y); 275 int start_x, int start_y, int delta_x, int delta_y);
272 276
273 // Creates a java-side touch gesture with two pointers, e.g. used by 277 // Creates a java-side touch gesture with two pointers, e.g. used by
274 // chrome.gpuBenchmarking.pinchBy. 278 // chrome.gpuBenchmarking.pinchBy.
275 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture( 279 base::android::ScopedJavaLocalRef<jobject> CreateTwoPointTouchGesture(
276 int start_x0, int start_y0, int delta_x0, int delta_y0, 280 int start_x0, int start_y0, int delta_x0, int delta_y0,
277 int start_x1, int start_y1, int delta_x1, int delta_y1); 281 int start_x1, int start_y1, int delta_x1, int delta_y1);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 ui::WindowAndroid* window_android_; 376 ui::WindowAndroid* window_android_;
373 377
374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 378 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
375 }; 379 };
376 380
377 bool RegisterContentViewCore(JNIEnv* env); 381 bool RegisterContentViewCore(JNIEnv* env);
378 382
379 } // namespace content 383 } // namespace content
380 384
381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 385 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698