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

Unified Diff: ui/events/event.h

Issue 2287403002: Create MouseWheelEvent directly instead of through MouseEvent. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index f699fb3dad66ca373dacbc4da9935dbd0e254091..5cd3c75aa136ece48be739b263393f0281a4b7e3 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -485,6 +485,7 @@ class EVENTS_EXPORT MouseEvent : public LocatedEvent {
}
// Used for synthetic events in testing, gesture recognizer and Ozone
+ // Note: Use the ctor for MouseWheelEvent if type is ET_MOUSEWHEEL.
MouseEvent(EventType type,
const gfx::Point& location,
const gfx::Point& root_location,

Powered by Google App Engine
This is Rietveld 408576698