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

Unified Diff: ui/events/event.h

Issue 1843433002: mash: Fix DCHECK when clicking on window close box (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 2 Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/frame/move_event_handler.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index def42660efecdab55a7108288ab1fcb7e349f839..49be333ba8e6ecd9d91419c5dd4204ef67457d0f 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -737,6 +737,11 @@ class EVENTS_EXPORT PointerEvent : public LocatedEvent {
public:
static const int32_t kMousePointerId;
+ // Returns true if a PointerEvent can be constructed from the given mouse or
+ // touch event. For example, PointerEvent does not support ET_MOUSEWHEEL or
+ // ET_MOUSE_CAPTURE_CHANGED.
+ static bool CanConvertFrom(const Event& event);
+
PointerEvent(const PointerEvent& pointer_event);
explicit PointerEvent(const MouseEvent& mouse_event);
explicit PointerEvent(const TouchEvent& touch_event);
« no previous file with comments | « mash/wm/frame/move_event_handler.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698