mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
73 lines
2.1 KiB
JavaScript
73 lines
2.1 KiB
JavaScript
/* 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/. */
|
|
|
|
"use strict";
|
|
|
|
/**
|
|
* Set of protocol messages that affect thread state, and the
|
|
* state the actor is in after each message.
|
|
*/
|
|
const ThreadStateTypes = {
|
|
"paused": "paused",
|
|
"resumed": "attached",
|
|
"detached": "detached",
|
|
"running": "attached"
|
|
};
|
|
|
|
/**
|
|
* Set of protocol messages that are sent by the server without a prior request
|
|
* by the client.
|
|
*/
|
|
const UnsolicitedNotifications = {
|
|
"consoleAPICall": "consoleAPICall",
|
|
"eventNotification": "eventNotification",
|
|
"fileActivity": "fileActivity",
|
|
"lastPrivateContextExited": "lastPrivateContextExited",
|
|
"logMessage": "logMessage",
|
|
"networkEvent": "networkEvent",
|
|
"networkEventUpdate": "networkEventUpdate",
|
|
"documentEvent": "documentEvent",
|
|
"newGlobal": "newGlobal",
|
|
"newScript": "newScript",
|
|
"tabDetached": "tabDetached",
|
|
"tabListChanged": "tabListChanged",
|
|
"reflowActivity": "reflowActivity",
|
|
"addonListChanged": "addonListChanged",
|
|
"workerListChanged": "workerListChanged",
|
|
"serviceWorkerRegistrationListChanged": "serviceWorkerRegistrationList",
|
|
"tabNavigated": "tabNavigated",
|
|
"frameUpdate": "frameUpdate",
|
|
"pageError": "pageError",
|
|
"documentLoad": "documentLoad",
|
|
"enteredFrame": "enteredFrame",
|
|
"exitedFrame": "exitedFrame",
|
|
"appOpen": "appOpen",
|
|
"appClose": "appClose",
|
|
"appInstall": "appInstall",
|
|
"appUninstall": "appUninstall",
|
|
"evaluationResult": "evaluationResult",
|
|
"newSource": "newSource",
|
|
"updatedSource": "updatedSource",
|
|
"inspectObject": "inspectObject"
|
|
};
|
|
|
|
/**
|
|
* Set of pause types that are sent by the server and not as an immediate
|
|
* response to a client request.
|
|
*/
|
|
const UnsolicitedPauses = {
|
|
"resumeLimit": "resumeLimit",
|
|
"debuggerStatement": "debuggerStatement",
|
|
"breakpoint": "breakpoint",
|
|
"DOMEvent": "DOMEvent",
|
|
"watchpoint": "watchpoint",
|
|
"exception": "exception"
|
|
};
|
|
|
|
module.exports = {
|
|
ThreadStateTypes,
|
|
UnsolicitedNotifications,
|
|
UnsolicitedPauses,
|
|
};
|