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

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

Issue 894913002: Prevent default actions for JS-generated mouse events other than click (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address bokan's feedback Created 5 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: Source/core/events/MouseEvent.h
diff --git a/Source/core/events/MouseEvent.h b/Source/core/events/MouseEvent.h
index 13af31cb53a50b8f60c7c9341f7676b2b1a83ebb..1295faa4b02f884bc7f85d9bda074c0e36cde561 100644
--- a/Source/core/events/MouseEvent.h
+++ b/Source/core/events/MouseEvent.h
@@ -78,6 +78,9 @@ public:
bool fromTouch() const { return m_syntheticEventType == PlatformMouseEvent::FromTouch; }
+ bool isSynthetic() const { return m_syntheticEventType == PlatformMouseEvent::Synthetic; }
Rick Byers 2015/03/05 16:34:18 Again this name is confusing. IIRC we recently rep
+ void markAsSynthetic() { m_syntheticEventType = PlatformMouseEvent::Synthetic; }
+
virtual const AtomicString& interfaceName() const override;
virtual bool isMouseEvent() const override;

Powered by Google App Engine
This is Rietveld 408576698