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

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

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup 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.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 UI_EXPORT base::TimeDelta EventTimeFromNative( 134 UI_EXPORT base::TimeDelta EventTimeFromNative(
135 const base::NativeEvent& native_event); 135 const base::NativeEvent& native_event);
136 136
137 // Get the location from a native event. The coordinate system of the resultant 137 // Get the location from a native event. The coordinate system of the resultant
138 // |Point| has the origin at top-left of the "root window". The nature of 138 // |Point| has the origin at top-left of the "root window". The nature of
139 // this "root window" and how it maps to platform-specific drawing surfaces is 139 // this "root window" and how it maps to platform-specific drawing surfaces is
140 // defined in ui/aura/root_window.* and ui/aura/root_window_host*. 140 // defined in ui/aura/root_window.* and ui/aura/root_window_host*.
141 UI_EXPORT gfx::Point EventLocationFromNative( 141 UI_EXPORT gfx::Point EventLocationFromNative(
142 const base::NativeEvent& native_event); 142 const base::NativeEvent& native_event);
143 143
144 // Gets the location in native system coordinate space.
145 UI_EXPORT gfx::Point EventSystemLocationFromNative(
146 const base::NativeEvent& native_event);
147
144 #if defined(USE_X11) 148 #if defined(USE_X11)
145 // Returns the 'real' button for an event. The button reported in slave events 149 // Returns the 'real' button for an event. The button reported in slave events
146 // does not take into account any remapping (e.g. using xmodmap), while the 150 // does not take into account any remapping (e.g. using xmodmap), while the
147 // button reported in master events do. This is a utility function to always 151 // button reported in master events do. This is a utility function to always
148 // return the mapped button. 152 // return the mapped button.
149 UI_EXPORT int EventButtonFromNative(const base::NativeEvent& native_event); 153 UI_EXPORT int EventButtonFromNative(const base::NativeEvent& native_event);
150 #endif 154 #endif
151 155
152 // Returns the KeyboardCode from a native event. 156 // Returns the KeyboardCode from a native event.
153 UI_EXPORT KeyboardCode KeyboardCodeFromNative( 157 UI_EXPORT KeyboardCode KeyboardCodeFromNative(
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 UI_EXPORT int GetModifiersFromKeyState(); 219 UI_EXPORT int GetModifiersFromKeyState();
216 220
217 // Returns true if |message| identifies a mouse event that was generated as the 221 // Returns true if |message| identifies a mouse event that was generated as the
218 // result of a touch event. 222 // result of a touch event.
219 UI_EXPORT bool IsMouseEventFromTouch(UINT message); 223 UI_EXPORT bool IsMouseEventFromTouch(UINT message);
220 #endif 224 #endif
221 225
222 } // namespace ui 226 } // namespace ui
223 227
224 #endif // UI_BASE_EVENTS_H_ 228 #endif // UI_BASE_EVENTS_H_
OLDNEW
« no previous file with comments | « ui/base/event.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698