diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/platform/PlatformMouseEvent.h | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/platform/PlatformMouseEvent.h')
-rw-r--r-- | Source/WebCore/platform/PlatformMouseEvent.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/platform/PlatformMouseEvent.h b/Source/WebCore/platform/PlatformMouseEvent.h index 20aecf107..44c9f5d90 100644 --- a/Source/WebCore/platform/PlatformMouseEvent.h +++ b/Source/WebCore/platform/PlatformMouseEvent.h @@ -55,6 +55,10 @@ namespace WebCore { // These button numbers match the ones used in the DOM API, 0 through 2, except for NoButton which isn't specified. enum MouseButton { NoButton = -1, LeftButton, MiddleButton, RightButton }; + +#if PLATFORM(BLACKBERRY) + enum MouseInputMethod { PointingDevice, TouchScreen }; +#endif class PlatformMouseEvent : public PlatformEvent { public: @@ -125,6 +129,10 @@ namespace WebCore { PlatformMouseEvent(const wxMouseEvent&, const wxPoint& globalPoint, int clickCount); #endif +#if PLATFORM(BLACKBERRY) + PlatformMouseEvent(const IntPoint& eventPosition, const IntPoint& globalPosition, const PlatformEvent::Type, int clickCount, MouseButton, MouseInputMethod = PointingDevice); + MouseInputMethod inputMethod() const { return m_inputMethod; } +#endif protected: IntPoint m_position; IntPoint m_globalPosition; @@ -139,6 +147,8 @@ namespace WebCore { int m_eventNumber; #elif PLATFORM(WIN) bool m_didActivateWebView; +#elif PLATFORM(BLACKBERRY) + MouseInputMethod m_inputMethod; #endif }; |