Chromium Code Reviews| Index: third_party/WebKit/Source/platform/PlatformMouseEvent.h |
| diff --git a/third_party/WebKit/Source/platform/PlatformMouseEvent.h b/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
| index 7051f901b33a88afeb4041f4e344d03ffc02a4ea..f43a2448ae8bf9d0cb92ad9ae542def630a845a4 100644 |
| --- a/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
| +++ b/third_party/WebKit/Source/platform/PlatformMouseEvent.h |
| @@ -29,6 +29,7 @@ |
| #include "platform/PlatformEvent.h" |
| #include "platform/geometry/IntPoint.h" |
| #include "public/platform/WebPointerProperties.h" |
| +#include "wtf/text/WTFString.h" |
| namespace blink { |
| @@ -87,6 +88,9 @@ public: |
| bool fromTouch() const { return m_synthesized == FromTouch; } |
| SyntheticEventType syntheticEventType() const { return m_synthesized; } |
| + const String& region() const { return m_region; } |
| + void setRegion(const String& region) { m_region = region; } |
| + |
| protected: |
| WebPointerProperties m_pointerProperties; |
| @@ -101,6 +105,9 @@ protected: |
| MouseButton m_button; |
| int m_clickCount; |
| SyntheticEventType m_synthesized; |
| + |
| + // For canvas hit region. |
| + String m_region; |
|
Rick Byers
2016/02/23 20:26:08
Conceptually this would probably make more sense t
zino
2016/03/08 12:33:48
Done.
I agree with you. I'll move the region data
Rick Byers
2016/03/08 15:57:34
Thanks. Note that I'm not convinced it's worth th
|
| }; |
| } // namespace blink |