DebuggerNotification.webidl (1654B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 enum DebuggerNotificationType { 6 // DebuggerNotification 7 "setTimeout", 8 "clearTimeout", 9 "setInterval", 10 "clearInterval", 11 "requestAnimationFrame", 12 "cancelAnimationFrame", 13 14 // CallbackDebuggerNotification 15 "setTimeoutCallback", 16 "setIntervalCallback", 17 "requestAnimationFrameCallback", 18 19 // EventCallbackDebuggerNotification 20 "domEvent", 21 }; 22 23 [ChromeOnly, Exposed=Window] 24 interface DebuggerNotification { 25 readonly attribute DebuggerNotificationType type; 26 27 // The global object that has triggered the notification. 28 readonly attribute object global; 29 }; 30 31 // For DOM events, we send notifications just before, and just after the 32 // event handler has been dispatched so that listeners 33 enum CallbackDebuggerNotificationPhase { 34 "pre", 35 "post", 36 }; 37 38 // A base notification type for notifications that are dispatched as pairs with 39 // a before and after notification. 40 [ChromeOnly, Exposed=Window] 41 interface CallbackDebuggerNotification : DebuggerNotification { 42 readonly attribute CallbackDebuggerNotificationPhase phase; 43 }; 44 45 enum EventCallbackDebuggerNotificationType { 46 "global", 47 "node", 48 "xhr", 49 "worker", 50 "websocket", 51 "closewatcher", 52 }; 53 54 // A notification that about the engine calling a DOM event handler. 55 [ChromeOnly, Exposed=Window] 56 interface EventCallbackDebuggerNotification : CallbackDebuggerNotification { 57 readonly attribute Event event; 58 readonly attribute EventCallbackDebuggerNotificationType targetType; 59 };