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

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

Issue 727593003: Implement MouseEvent buttons attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: should be 0 in contextmenu event Created 6 years, 1 month 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/events/WheelEvent.h
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
index dd98ec56b6feca40d7763163a745d38c90853dac..61f11b5fc5c99bcdbdaa12fb6f68b7ec820b631d 100644
--- a/Source/core/events/WheelEvent.h
+++ b/Source/core/events/WheelEvent.h
@@ -68,10 +68,10 @@ public:
static PassRefPtrWillBeRawPtr<WheelEvent> create(const FloatPoint& wheelTicks,
const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtrWillBeRawPtr<AbstractView> view,
const IntPoint& screenLocation, const IntPoint& pageLocation,
- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons)
{
return adoptRefWillBeNoop(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
- screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey));
+ screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey, buttons));
}
double deltaX() const { return m_deltaX; } // Positive when scrolling right.
@@ -95,7 +95,7 @@ private:
WheelEvent(const AtomicString&, const WheelEventInit&);
WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
unsigned, PassRefPtrWillBeRawPtr<AbstractView>, const IntPoint& screenLocation, const IntPoint& pageLocation,
- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons);
IntPoint m_wheelDelta;
double m_deltaX;

Powered by Google App Engine
This is Rietveld 408576698