Chromium Code Reviews| Index: third_party/WebKit/Source/core/events/MouseEvent.h |
| diff --git a/third_party/WebKit/Source/core/events/MouseEvent.h b/third_party/WebKit/Source/core/events/MouseEvent.h |
| index b3c5735cfc9b1313739347ceab34b6ec208c02ee..195a953d5c146fd535251c9dee2c3df606d431be 100644 |
| --- a/third_party/WebKit/Source/core/events/MouseEvent.h |
| +++ b/third_party/WebKit/Source/core/events/MouseEvent.h |
| @@ -49,7 +49,8 @@ public: |
| short button, unsigned short buttons, |
| PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, |
| double platformTimeStamp, |
| - PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndistinguishable); |
| + PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndistinguishable, |
| + const String& region = String()); |
| static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtrWillBeRawPtr<Node> relatedTarget); |
| @@ -75,6 +76,8 @@ public: |
| EventTarget* relatedTarget() const { return m_relatedTarget.get(); } |
| void setRelatedTarget(PassRefPtrWillBeRawPtr<EventTarget> relatedTarget) { m_relatedTarget = relatedTarget; } |
| PlatformMouseEvent::SyntheticEventType syntheticEventType() const { return m_syntheticEventType; } |
| + const String& region() const { return m_region; } |
| + void setRegion(const String& region) { m_region = region; } |
| Node* toElement() const; |
| Node* fromElement() const; |
| @@ -106,7 +109,8 @@ protected: |
| PlatformEvent::Modifiers, short button, unsigned short buttons, |
| PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, |
| double platformTimeStamp, |
| - PlatformMouseEvent::SyntheticEventType); |
| + PlatformMouseEvent::SyntheticEventType, |
| + const String& region = String()); |
|
philipj_slow
2016/02/15 10:45:24
Is the default needed? Update callers?
zino
2016/03/08 12:33:48
Done.
|
| MouseEvent(const AtomicString& type, const MouseEventInit&); |
| @@ -125,6 +129,7 @@ private: |
| unsigned short m_buttons; |
| RefPtrWillBeMember<EventTarget> m_relatedTarget; |
| PlatformMouseEvent::SyntheticEventType m_syntheticEventType; |
| + String m_region; |
| }; |
| class MouseEventDispatchMediator final : public EventDispatchMediator { |