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

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

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved InkDropHostView::AsLocatedEvent() to event_utils.(h|cc) as ToLocatedEventOrNull(). Created 4 years, 6 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #if defined(USE_X11) 172 #if defined(USE_X11)
173 // Update the native X11 event to correspond to the new flags. 173 // Update the native X11 event to correspond to the new flags.
174 EVENTS_EXPORT void UpdateX11EventForFlags(Event* event); 174 EVENTS_EXPORT void UpdateX11EventForFlags(Event* event);
175 // Update the native X11 event to correspond to the new button flags. 175 // Update the native X11 event to correspond to the new button flags.
176 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event); 176 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event);
177 #endif 177 #endif
178 178
179 // Registers a custom event type. 179 // Registers a custom event type.
180 EVENTS_EXPORT int RegisterCustomEventType(); 180 EVENTS_EXPORT int RegisterCustomEventType();
181 181
182 // Convenience function that casts |event| to a LocatedEvent if it is one,
183 // otherwise returns null.
184 EVENTS_EXPORT const ui::LocatedEvent* ToLocatedEventOrNull(
sky 2016/06/16 16:50:02 +sadrul for his thoughts. I prefer a static on Loc
bruthig 2016/06/16 19:50:02 Moved to LocatedEvent::AsLocatedEventIfLocatedEven
sadrul 2016/06/17 16:03:22 We could have LocatedEvent::From(ui::Event*); whic
185 const ui::Event* event);
186
182 } // namespace ui 187 } // namespace ui
183 188
184 #endif // UI_EVENTS_EVENT_UTILS_H_ 189 #endif // UI_EVENTS_EVENT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698