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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.h

Issue 1654653002: Canvas2d: Implement rerouting event by hit region's control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot errors Created 4 years, 9 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
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 52c12ae42705c2790427174313721e84d5b07515..1ff701adafba838b480dfa5877bc4509ca52501a 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,
+ const String& region);
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 getSyntheticEventType() 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);
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 {

Powered by Google App Engine
This is Rietveld 408576698