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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_target_android.h

Issue 134123003: Generate proper LatencyInfo components for synthetic gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove InputEvent forward decl Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 29 matching lines...) Expand all
40 enum Action { 40 enum Action {
41 ActionInvalid = -1, 41 ActionInvalid = -1,
42 ActionStart = 0, 42 ActionStart = 0,
43 ActionMove = 1, 43 ActionMove = 1,
44 ActionCancel = 2, 44 ActionCancel = 2,
45 ActionEnd = 3 45 ActionEnd = 3
46 }; 46 };
47 47
48 void TouchSetPointer(JNIEnv* env, int index, int x, int y, int id); 48 void TouchSetPointer(JNIEnv* env, int index, int x, int y, int id);
49 void TouchInject( 49 void TouchInject(
50 JNIEnv* env, Action action, int pointer_count, long time_in_ms); 50 JNIEnv* env, Action action, int pointer_count, int64 time_in_ms);
51 51
52 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_; 52 base::android::ScopedJavaGlobalRef<jobject> touch_event_synthesizer_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid); 54 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAndroid);
55 }; 55 };
56 56
57 } // namespace content 57 } // namespace content
58 58
59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_ H_ 59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_ANDROID_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698