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

Side by Side Diff: ui/base/events.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | views/events/event.h » ('j') | views/events/event.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_BASE_EVENTS_H_ 5 #ifndef UI_BASE_EVENTS_H_
6 #define UI_BASE_EVENTS_H_ 6 #define UI_BASE_EVENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/event_types.h" 9 #include "base/event_types.h"
10 #include "ui/base/keycodes/keyboard_codes.h" 10 #include "ui/base/keycodes/keyboard_codes.h"
(...skipping 17 matching lines...) Expand all
28 ET_KEY_PRESSED, 28 ET_KEY_PRESSED,
29 ET_KEY_RELEASED, 29 ET_KEY_RELEASED,
30 ET_MOUSEWHEEL, 30 ET_MOUSEWHEEL,
31 ET_TOUCH_RELEASED, 31 ET_TOUCH_RELEASED,
32 ET_TOUCH_PRESSED, 32 ET_TOUCH_PRESSED,
33 ET_TOUCH_MOVED, 33 ET_TOUCH_MOVED,
34 ET_TOUCH_STATIONARY, 34 ET_TOUCH_STATIONARY,
35 ET_TOUCH_CANCELLED, 35 ET_TOUCH_CANCELLED,
36 ET_DROP_TARGET_EVENT, 36 ET_DROP_TARGET_EVENT,
37 ET_FOCUS_CHANGE, 37 ET_FOCUS_CHANGE,
38
39 // GestureEvent types.
40 ET_GESTURE_SCROLL_BEGIN,
41 ET_GESTURE_SCROLL_END,
42 ET_GESTURE_SCROLL_UPDATE,
43 ET_GESTURE_TAP,
44 ET_GESTURE_TAP_DOWN,
45 ET_GESTURE_DOUBLE_TAP,
38 }; 46 };
39 47
40 // Event flags currently supported 48 // Event flags currently supported
41 enum EventFlags { 49 enum EventFlags {
42 EF_CAPS_LOCK_DOWN = 1 << 0, 50 EF_CAPS_LOCK_DOWN = 1 << 0,
43 EF_SHIFT_DOWN = 1 << 1, 51 EF_SHIFT_DOWN = 1 << 1,
44 EF_CONTROL_DOWN = 1 << 2, 52 EF_CONTROL_DOWN = 1 << 2,
45 EF_ALT_DOWN = 1 << 3, 53 EF_ALT_DOWN = 1 << 3,
46 EF_LEFT_BUTTON_DOWN = 1 << 4, 54 EF_LEFT_BUTTON_DOWN = 1 << 4,
47 EF_MIDDLE_BUTTON_DOWN = 1 << 5, 55 EF_MIDDLE_BUTTON_DOWN = 1 << 5,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 94
87 // Returns true if the message is a mouse event. 95 // Returns true if the message is a mouse event.
88 UI_EXPORT bool IsMouseEvent(const base::NativeEvent& native_event); 96 UI_EXPORT bool IsMouseEvent(const base::NativeEvent& native_event);
89 97
90 // Get the mouse wheel offset from a native event. 98 // Get the mouse wheel offset from a native event.
91 UI_EXPORT int GetMouseWheelOffset(const base::NativeEvent& native_event); 99 UI_EXPORT int GetMouseWheelOffset(const base::NativeEvent& native_event);
92 100
93 } // namespace ui 101 } // namespace ui
94 102
95 #endif // UI_BASE_EVENTS_H_ 103 #endif // UI_BASE_EVENTS_H_
OLDNEW
« no previous file with comments | « no previous file | views/events/event.h » ('j') | views/events/event.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698