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

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

Issue 108723008: Remove some confusing code from ToplevelWindowEventHandler::HandleMousePressed() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | « ash/wm/workspace/workspace_event_handler.cc ('k') | ui/events/event_utils.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_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 "base/event_types.h" 8 #include "base/event_types.h"
9 #include "ui/events/event_constants.h" 9 #include "ui/events/event_constants.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Returns true if |message| identifies a mouse event that was generated as the 151 // Returns true if |message| identifies a mouse event that was generated as the
152 // result of a touch event. 152 // result of a touch event.
153 EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message); 153 EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message);
154 154
155 // Converts scan code and lParam each other. The scan code 155 // Converts scan code and lParam each other. The scan code
156 // representing an extended key contains 0xE000 bits. 156 // representing an extended key contains 0xE000 bits.
157 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam); 157 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam);
158 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code); 158 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code);
159 #endif 159 #endif
160 160
161 // Returns true if default post-target handling was canceled for |event| after
162 // its dispatch to its target.
163 EVENTS_EXPORT bool EventCanceledDefaultHandling(const Event& event);
164
165 // Registers a custom event type. 161 // Registers a custom event type.
166 EVENTS_EXPORT int RegisterCustomEventType(); 162 EVENTS_EXPORT int RegisterCustomEventType();
167 163
168 } // namespace ui 164 } // namespace ui
169 165
170 #endif // UI_EVENTS_EVENT_UTILS_H_ 166 #endif // UI_EVENTS_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698