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

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: Created 4 years, 10 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 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 {

Powered by Google App Engine
This is Rietveld 408576698