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/. */
5 enum DebuggerNotificationType {
6 // DebuggerNotification
11 "requestAnimationFrame",
12 "cancelAnimationFrame",
14 // CallbackDebuggerNotification
16 "setIntervalCallback",
17 "requestAnimationFrameCallback",
19 // EventCallbackDebuggerNotification
23 [ChromeOnly, Exposed=Window]
24 interface DebuggerNotification {
25 readonly attribute DebuggerNotificationType type;
27 // The global object that has triggered the notification.
28 readonly attribute object global;
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 {
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;
45 enum EventCallbackDebuggerNotificationType {
53 // A notification that about the engine calling a DOM event handler.
54 [ChromeOnly, Exposed=Window]
55 interface EventCallbackDebuggerNotification : CallbackDebuggerNotification {
56 readonly attribute Event event;
57 readonly attribute EventCallbackDebuggerNotificationType targetType;