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

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

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)
Patch Set: Fixed unit tests Created 4 years 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 (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_EVENTS_EVENT_UTILS_H_ 5 #ifndef UI_EVENTS_EVENT_UTILS_H_
6 #define UI_EVENTS_EVENT_UTILS_H_ 6 #define UI_EVENTS_EVENT_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #if defined(USE_X11) 174 #if defined(USE_X11)
175 // Update the native X11 event to correspond to the new flags. 175 // Update the native X11 event to correspond to the new flags.
176 EVENTS_EXPORT void UpdateX11EventForFlags(Event* event); 176 EVENTS_EXPORT void UpdateX11EventForFlags(Event* event);
177 // Update the native X11 event to correspond to the new button flags. 177 // Update the native X11 event to correspond to the new button flags.
178 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event); 178 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event);
179 #endif 179 #endif
180 180
181 // Registers a custom event type. 181 // Registers a custom event type.
182 EVENTS_EXPORT int RegisterCustomEventType(); 182 EVENTS_EXPORT int RegisterCustomEventType();
183 183
184 // Returns true if |event_flags| indicate the event came from a mouse event.
185 EVENTS_EXPORT bool IsMouseEventFromFlags(int event_flags);
186
187 // Returns true if |event_flags| indicate the event came from a touch event.
188 EVENTS_EXPORT bool IsTouchEventFromFlags(int event_flags);
189
184 } // namespace ui 190 } // namespace ui
185 191
186 #endif // UI_EVENTS_EVENT_UTILS_H_ 192 #endif // UI_EVENTS_EVENT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698