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

Unified Diff: Source/core/dom/WheelEvent.h

Issue 22859012: Add support for DOM Level 3 WheelEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify test case Created 7 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: Source/core/dom/WheelEvent.h
diff --git a/Source/core/dom/WheelEvent.h b/Source/core/dom/WheelEvent.h
index ba17ab4ad2432fd22dcc01ebb32b281692cc6be6..e955b7300e3d176f4436582c583cc13ce4a67302 100644
--- a/Source/core/dom/WheelEvent.h
+++ b/Source/core/dom/WheelEvent.h
@@ -35,8 +35,8 @@ class PlatformWheelEvent;
struct WheelEventInit : public MouseEventInit {
WheelEventInit();
- int wheelDeltaX;
- int wheelDeltaY;
+ int deltaX;
+ int deltaY;
unsigned deltaMode;
};
@@ -78,8 +78,8 @@ public:
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
int wheelDelta() const { return m_wheelDelta.y() ? m_wheelDelta.y() : m_wheelDelta.x(); }
- int wheelDeltaX() const { return m_wheelDelta.x(); }
- int wheelDeltaY() const { return m_wheelDelta.y(); }
+ int deltaX() const { return m_wheelDelta.x(); }
+ int deltaY() const { return m_wheelDelta.y(); }
int rawDeltaX() const { return m_rawDelta.x(); }
int rawDeltaY() const { return m_rawDelta.y(); }
unsigned deltaMode() const { return m_deltaMode; }

Powered by Google App Engine
This is Rietveld 408576698