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

Side by Side Diff: content/common/input/synthetic_gesture_params.h

Issue 929333002: Adding synthetic touch/mouse drag [Part1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 10 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_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 27 matching lines...) Expand all
38 enum GestureSourceType { 38 enum GestureSourceType {
39 DEFAULT_INPUT, 39 DEFAULT_INPUT,
40 TOUCH_INPUT, 40 TOUCH_INPUT,
41 MOUSE_INPUT, 41 MOUSE_INPUT,
42 GESTURE_SOURCE_TYPE_MAX = MOUSE_INPUT 42 GESTURE_SOURCE_TYPE_MAX = MOUSE_INPUT
43 }; 43 };
44 GestureSourceType gesture_source_type; 44 GestureSourceType gesture_source_type;
45 45
46 enum GestureType { 46 enum GestureType {
47 SMOOTH_SCROLL_GESTURE, 47 SMOOTH_SCROLL_GESTURE,
48 SMOOTH_DRAG_GESTURE,
48 PINCH_GESTURE, 49 PINCH_GESTURE,
49 TAP_GESTURE, 50 TAP_GESTURE,
50 SYNTHETIC_GESTURE_TYPE_MAX = TAP_GESTURE 51 SYNTHETIC_GESTURE_TYPE_MAX = TAP_GESTURE
51 }; 52 };
52 virtual GestureType GetGestureType() const = 0; 53 virtual GestureType GetGestureType() const = 0;
53 54
54 // Returns true if the specific gesture source type is supported on this 55 // Returns true if the specific gesture source type is supported on this
55 // platform. 56 // platform.
56 static bool IsGestureSourceTypeSupported( 57 static bool IsGestureSourceTypeSupported(
57 GestureSourceType gesture_source_type); 58 GestureSourceType gesture_source_type);
58 }; 59 };
59 60
60 } // namespace content 61 } // namespace content
61 62
62 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_ 63 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_GESTURE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/synthetic_smooth_drag_gesture_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698