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/event_constants.h

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 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 | « ui/base/events/event.cc ('k') | ui/base/events/event_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_BASE_EVENTS_EVENT_CONSTANTS_H_ 5 #ifndef UI_BASE_EVENTS_EVENT_CONSTANTS_H_
6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_H_ 6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_H_
7 7
8 #include "base/event_types.h" 8 #include "base/event_types.h"
9 #include "ui/base/keycodes/keyboard_codes.h" 9 #include "ui/base/keycodes/keyboard_codes.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 97 };
98 98
99 // Result of dispatching an event. 99 // Result of dispatching an event.
100 enum EventResult { 100 enum EventResult {
101 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be 101 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be
102 // propagated to other handlers. 102 // propagated to other handlers.
103 ER_HANDLED = 1 << 0, // The event has already been handled, but it can 103 ER_HANDLED = 1 << 0, // The event has already been handled, but it can
104 // still be propagated to other handlers. 104 // still be propagated to other handlers.
105 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be 105 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be
106 // propagated to other handlers. 106 // propagated to other handlers.
107 ER_ASYNC = 1 << 2, // The event will be processed asynchronously. The
108 // event can still be propagated to other handlers.
109 }; 107 };
110 108
111 // Phase of the event dispatch. 109 // Phase of the event dispatch.
112 enum EventPhase { 110 enum EventPhase {
113 EP_PREDISPATCH, 111 EP_PREDISPATCH,
114 EP_PRETARGET, 112 EP_PRETARGET,
115 EP_TARGET, 113 EP_TARGET,
116 EP_POSTTARGET, 114 EP_POSTTARGET,
117 EP_POSTDISPATCH 115 EP_POSTDISPATCH
118 }; 116 };
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 UI_EXPORT int GetModifiersFromKeyState(); 232 UI_EXPORT int GetModifiersFromKeyState();
235 233
236 // Returns true if |message| identifies a mouse event that was generated as the 234 // Returns true if |message| identifies a mouse event that was generated as the
237 // result of a touch event. 235 // result of a touch event.
238 UI_EXPORT bool IsMouseEventFromTouch(UINT message); 236 UI_EXPORT bool IsMouseEventFromTouch(UINT message);
239 #endif 237 #endif
240 238
241 } // namespace ui 239 } // namespace ui
242 240
243 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_ 241 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/base/events/event.cc ('k') | ui/base/events/event_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698