Bug 849855 - Expose BaseEventFlags::mMultipleActionsPrevented to chrome JS. r=smaug.
authorJonathan Watt <jwatt@jwatt.org>
Tue, 12 Mar 2013 11:28:17 +0000
changeset 124482 1515379f6d6ffb94f2aa86ee4f22a828850a8b4d
parent 124481 2decb8b91c3b32f39158a26824318c0a54a844a8
child 124483 6e993ef95ad7eb3dff39f75864c9a9d319d1d8bd
push id24420
push userryanvm@gmail.com
push dateTue, 12 Mar 2013 19:35:31 +0000
treeherdermozilla-central@79b8e0a0bdb7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs849855
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 849855 - Expose BaseEventFlags::mMultipleActionsPrevented to chrome JS. r=smaug.
content/events/src/nsDOMEvent.h
dom/webidl/Event.webidl
--- a/content/events/src/nsDOMEvent.h
+++ b/content/events/src/nsDOMEvent.h
@@ -171,16 +171,21 @@ public:
 
   bool DefaultPrevented()
   {
     bool d;
     GetDefaultPrevented(&d);
     return d;
   }
 
+  bool MultipleActionsPrevented()
+  {
+    return mEvent->mFlags.mMultipleActionsPrevented;
+  }
+
   bool IsTrusted()
   {
     bool i;
     GetIsTrusted(&i);
     return i;
   }
 
   uint64_t TimeStamp()
--- a/dom/webidl/Event.webidl
+++ b/dom/webidl/Event.webidl
@@ -73,16 +73,17 @@ partial interface Event {
 
   const long ALT_MASK     = 0x00000001;
   const long CONTROL_MASK = 0x00000002;
   const long SHIFT_MASK   = 0x00000004;
   const long META_MASK    = 0x00000008;
 
   readonly attribute EventTarget? originalTarget;
   readonly attribute EventTarget? explicitOriginalTarget;
+  [ChromeOnly] readonly attribute boolean multipleActionsPrevented;
 
   void preventBubble();
   void preventCapture();
   boolean getPreventDefault();
 };
 
 dictionary EventInit {
   boolean bubbles = false;