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

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

Issue 727593003: Implement MouseEvent buttons attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed comments Created 6 years, 1 month 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.idl
diff --git a/Source/core/events/MouseEvent.idl b/Source/core/events/MouseEvent.idl
index 776a96d848250c13b33e15a7d81555b8322fb197..8a03192adc43cdc7ff1334410cdb2b4e2cd2eabd 100644
--- a/Source/core/events/MouseEvent.idl
+++ b/Source/core/events/MouseEvent.idl
@@ -29,6 +29,7 @@
[InitializedByEventConstructor] readonly attribute boolean altKey;
[InitializedByEventConstructor] readonly attribute boolean metaKey;
[InitializedByEventConstructor] readonly attribute unsigned short button;
+ [RuntimeEnabled=MouseEventButtonsAttribute, InitializedByEventConstructor] readonly attribute unsigned short buttons;
[InitializedByEventConstructor] readonly attribute EventTarget? relatedTarget;
[MeasureAs=MouseEventMovementX] readonly attribute long movementX;
[MeasureAs=MouseEventMovementY] readonly attribute long movementY;

Powered by Google App Engine
This is Rietveld 408576698