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

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

Issue 10802085: Correct behaviour of touch wrt mouse capture. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved IsMouseEventFromTouch from base/win to ui/base/win 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.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
212 // Returns true if |message| identifies a mouse event that was generated as the
213 // result of a touch event.
214 UI_EXPORT bool IsMouseEventFromTouch(UINT message);
211 #endif 215 #endif
212 216
213 } // namespace ui 217 } // namespace ui
214 218
215 #endif // UI_BASE_EVENTS_H_ 219 #endif // UI_BASE_EVENTS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698