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

Unified Diff: Source/platform/PlatformMouseEvent.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
« Source/core/events/MouseEvent.h ('K') | « Source/core/events/MouseEvent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformMouseEvent.h
diff --git a/Source/platform/PlatformMouseEvent.h b/Source/platform/PlatformMouseEvent.h
index 74b30d344bf822167978fd9f3f81611f61f41c9b..1b34aafcbf1940ad6752f2f0b189abe9f246bd8d 100644
--- a/Source/platform/PlatformMouseEvent.h
+++ b/Source/platform/PlatformMouseEvent.h
@@ -41,6 +41,8 @@ public:
RealOrIndistinguishable,
// Mouse events derived from touch input
FromTouch,
+ // Synthetic mouse events that do not fire the default action handler
+ Synthetic,
Rick Byers 2015/03/05 16:34:18 Nit: can we call this 'FromScript' to distinguish
};
PlatformMouseEvent()
« Source/core/events/MouseEvent.h ('K') | « Source/core/events/MouseEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698