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

Unified Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2227803003: Plumb phase/momentum for WheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebInputEvent.h
diff --git a/third_party/WebKit/public/platform/WebInputEvent.h b/third_party/WebKit/public/platform/WebInputEvent.h
index 83f5613e04b402b278087aac0592db3d3273b3e6..8bb230e77a564730d3aa7d2c9dcd6aeb9baf21ee 100644
--- a/third_party/WebKit/public/platform/WebInputEvent.h
+++ b/third_party/WebKit/public/platform/WebInputEvent.h
@@ -392,6 +392,10 @@ protected:
class WebMouseWheelEvent : public WebMouseEvent {
public:
+ // Note: due to the use of static_casts to convert this type to
+ // PlatformWheelEventPhase, and WheelEventPhase to
+ // WebMouseWheelEvent::Phase, the definition that follows must be kept in
+ // sync with that used for the corresponding types.
esprehn 2016/08/09 19:14:12 We usually use static_asserts to enforce parallel
enum Phase {
PhaseNone = 0,
PhaseBegan = 1 << 0,
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698