Bug 1023695 - Part 3: .webidl change to support ondeleted event. r=vyang,smaug.
authorBevis Tseng <btseng@mozilla.com>
Fri, 27 Jun 2014 13:22:30 +0800
changeset 193188 5f5ef8d480bfcbc22b94c3e85d921a3e82ec54f6
parent 193187 ef9dbb2245c8b1da53e47f6a48892a9df0b63aab
child 193189 cfa5fcf861f50bd07c7ecd430b7df307fcb6bef7
push id8768
push uservyang@mozilla.com
push dateThu, 10 Jul 2014 09:30:42 +0000
treeherderb2g-inbound@6dceb20498b3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvyang, smaug
bugs1023695
milestone33.0a1
Bug 1023695 - Part 3: .webidl change to support ondeleted event. r=vyang,smaug.
dom/webidl/MozMessageDeletedEvent.webidl
dom/webidl/MozMobileMessageManager.webidl
dom/webidl/moz.build
new file mode 100644
--- /dev/null
+++ b/dom/webidl/MozMessageDeletedEvent.webidl
@@ -0,0 +1,21 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+[Pref="dom.sms.enabled",
+ Constructor(DOMString type, optional MozMessageDeletedEventInit eventInitDict)]
+interface MozMessageDeletedEvent : Event
+{
+  // Array of deleted message ids.
+  [Cached, Constant] readonly attribute sequence<long>? deletedMessageIds;
+  // Array of deleted thread ids.
+  [Cached, Constant] readonly attribute sequence<unsigned long long>? deletedThreadIds;
+};
+
+dictionary MozMessageDeletedEventInit : EventInit
+{
+  sequence<long>? deletedMessageIds = null;
+  sequence<unsigned long long>? deletedThreadIds = null;
+};
\ No newline at end of file
--- a/dom/webidl/MozMobileMessageManager.webidl
+++ b/dom/webidl/MozMobileMessageManager.webidl
@@ -115,9 +115,10 @@ interface MozMobileMessageManager : Even
   attribute EventHandler onretrieving;
   attribute EventHandler onsending;
   attribute EventHandler onsent;
   attribute EventHandler onfailed;
   attribute EventHandler ondeliverysuccess;
   attribute EventHandler ondeliveryerror;
   attribute EventHandler onreadsuccess;
   attribute EventHandler onreaderror;
+  attribute EventHandler ondeleted;
 };
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -647,16 +647,17 @@ GENERATED_EVENTS_WEBIDL_FILES = [
     'HashChangeEvent.webidl',
     'IccChangeEvent.webidl',
     'MediaStreamEvent.webidl',
     'MozApplicationEvent.webidl',
     'MozClirModeEvent.webidl',
     'MozContactChangeEvent.webidl',
     'MozEmergencyCbModeEvent.webidl',
     'MozInterAppMessageEvent.webidl',
+    'MozMessageDeletedEvent.webidl',
     'MozMmsEvent.webidl',
     'MozOtaStatusEvent.webidl',
     'MozSettingsEvent.webidl',
     'MozSmsEvent.webidl',
     'MozStkCommandEvent.webidl',
     'PageTransitionEvent.webidl',
     'PopStateEvent.webidl',
     'PopupBlockedEvent.webidl',