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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/event_unittest.cc ('k') | ui/base/win/events_win.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_H_ 5 #ifndef UI_BASE_EVENTS_H_
6 #define UI_BASE_EVENTS_H_ 6 #define UI_BASE_EVENTS_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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); 201 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event);
202 202
203 // Returns true if event is noop. 203 // Returns true if event is noop.
204 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); 204 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event);
205 205
206 // Creates and returns no-op event. 206 // Creates and returns no-op event.
207 UI_EXPORT base::NativeEvent CreateNoopEvent(); 207 UI_EXPORT base::NativeEvent CreateNoopEvent();
208 208
209 #if defined(OS_WIN) 209 #if defined(OS_WIN)
210 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); 210 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel);
211 UI_EXPORT int GetModifiersFromKeyState();
211 212
212 // Returns true if |message| identifies a mouse event that was generated as the 213 // Returns true if |message| identifies a mouse event that was generated as the
213 // result of a touch event. 214 // result of a touch event.
214 UI_EXPORT bool IsMouseEventFromTouch(UINT message); 215 UI_EXPORT bool IsMouseEventFromTouch(UINT message);
215 #endif 216 #endif
216 217
217 } // namespace ui 218 } // namespace ui
218 219
219 #endif // UI_BASE_EVENTS_H_ 220 #endif // UI_BASE_EVENTS_H_
OLDNEW
« no previous file with comments | « ui/base/event_unittest.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698