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

Unified Diff: third_party/WebKit/Source/platform/PlatformWheelEvent.h

Issue 2377703002: Made PlatformWheelEvent a subclass of PlatformMouseEvent. (Closed)
Patch Set: Created 4 years, 3 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/platform/PlatformMouseEvent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/PlatformWheelEvent.h
diff --git a/third_party/WebKit/Source/platform/PlatformWheelEvent.h b/third_party/WebKit/Source/platform/PlatformWheelEvent.h
index 66d3eca529b7516438cb51a7c4bf3be3d2be7ee4..7552d228bc5f304f88468bde071409017688ecac 100644
--- a/third_party/WebKit/Source/platform/PlatformWheelEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformWheelEvent.h
@@ -27,6 +27,7 @@
#define PlatformWheelEvent_h
#include "platform/PlatformEvent.h"
+#include "platform/PlatformMouseEvent.h"
#include "platform/geometry/IntPoint.h"
namespace blink {
@@ -53,10 +54,10 @@ enum PlatformWheelEventPhase {
};
#endif
-class PlatformWheelEvent : public PlatformEvent {
+class PlatformWheelEvent : public PlatformMouseEvent {
public:
PlatformWheelEvent()
- : PlatformEvent(PlatformEvent::Wheel)
+ : PlatformMouseEvent(PlatformEvent::Wheel)
, m_deltaX(0)
, m_deltaY(0)
, m_wheelTicksX(0)
@@ -73,9 +74,6 @@ public:
{
}
- const IntPoint& position() const { return m_position; } // PlatformWindow coordinates.
- const IntPoint& globalPosition() const { return m_globalPosition; } // Screen coordinates.
-
float deltaX() const { return m_deltaX; }
float deltaY() const { return m_deltaY; }
@@ -96,8 +94,6 @@ public:
#endif
protected:
- IntPoint m_position;
- IntPoint m_globalPosition;
float m_deltaX;
float m_deltaY;
float m_wheelTicksX;
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformMouseEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698