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

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

Issue 10911256: Change the way the ToplevelEventHandler is hooked up. It is now both a pre- and post-target event h… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« ui/base/events/event.cc ('K') | « ui/base/events/event.cc ('k') | no next file » | 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // The caller is responsible for ensuring that this is a mouse/touchpad event 220 // The caller is responsible for ensuring that this is a mouse/touchpad event
221 // before calling this function. 221 // before calling this function.
222 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); 222 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event);
223 223
224 // Returns true if event is noop. 224 // Returns true if event is noop.
225 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); 225 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event);
226 226
227 // Creates and returns no-op event. 227 // Creates and returns no-op event.
228 UI_EXPORT base::NativeEvent CreateNoopEvent(); 228 UI_EXPORT base::NativeEvent CreateNoopEvent();
229 229
230 // Returns true if default post-target handling was canceled for |event| after
231 // its dispatch to its target.
232 UI_EXPORT bool EventCanceledDefaultHandling(const ui::Event& event);
233
230 #if defined(OS_WIN) 234 #if defined(OS_WIN)
231 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); 235 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel);
232 UI_EXPORT int GetModifiersFromKeyState(); 236 UI_EXPORT int GetModifiersFromKeyState();
233 237
234 // Returns true if |message| identifies a mouse event that was generated as the 238 // Returns true if |message| identifies a mouse event that was generated as the
235 // result of a touch event. 239 // result of a touch event.
236 UI_EXPORT bool IsMouseEventFromTouch(UINT message); 240 UI_EXPORT bool IsMouseEventFromTouch(UINT message);
237 #endif 241 #endif
238 242
239 } // namespace ui 243 } // namespace ui
240 244
241 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_ 245 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« ui/base/events/event.cc ('K') | « ui/base/events/event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698