gecko-dev/devtools/shared/client/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 строки
1.7 KiB
JavaScript
Исходник Обычный вид История

Bug 1403895 - split main.js in mulitple files; r=ochameau. This patch keeps the main.js file so we don't have to change consumer code that uses objects fom this file. MozReview-Commit-ID: KhFoPPApE2L --HG-- rename : devtools/shared/client/main.js => devtools/shared/client/addon-client.js rename : devtools/shared/client/main.js => devtools/shared/client/array-buffer-client.js rename : devtools/shared/client/main.js => devtools/shared/client/breakpoint-client.js rename : devtools/shared/client/main.js => devtools/shared/client/constants.js rename : devtools/shared/client/main.js => devtools/shared/client/debugger-client.js rename : devtools/shared/client/main.js => devtools/shared/client/environment-client.js rename : devtools/shared/client/main.js => devtools/shared/client/event-source.js rename : devtools/shared/client/main.js => devtools/shared/client/long-string-client.js rename : devtools/shared/client/main.js => devtools/shared/client/object-client.js rename : devtools/shared/client/main.js => devtools/shared/client/property-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/root-client.js rename : devtools/shared/client/main.js => devtools/shared/client/source-client.js rename : devtools/shared/client/main.js => devtools/shared/client/symbol-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/tab-client.js rename : devtools/shared/client/main.js => devtools/shared/client/thread-client.js rename : devtools/shared/client/main.js => devtools/shared/client/trace-client.js rename : devtools/shared/client/main.js => devtools/shared/client/worker-client.js extra : rebase_source : e5f6978cb3e543af7073e234320af1f3afde356d
2017-09-28 18:29:55 +03:00
/* 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",
Bug 1403895 - split main.js in mulitple files; r=ochameau. This patch keeps the main.js file so we don't have to change consumer code that uses objects fom this file. MozReview-Commit-ID: KhFoPPApE2L --HG-- rename : devtools/shared/client/main.js => devtools/shared/client/addon-client.js rename : devtools/shared/client/main.js => devtools/shared/client/array-buffer-client.js rename : devtools/shared/client/main.js => devtools/shared/client/breakpoint-client.js rename : devtools/shared/client/main.js => devtools/shared/client/constants.js rename : devtools/shared/client/main.js => devtools/shared/client/debugger-client.js rename : devtools/shared/client/main.js => devtools/shared/client/environment-client.js rename : devtools/shared/client/main.js => devtools/shared/client/event-source.js rename : devtools/shared/client/main.js => devtools/shared/client/long-string-client.js rename : devtools/shared/client/main.js => devtools/shared/client/object-client.js rename : devtools/shared/client/main.js => devtools/shared/client/property-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/root-client.js rename : devtools/shared/client/main.js => devtools/shared/client/source-client.js rename : devtools/shared/client/main.js => devtools/shared/client/symbol-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/tab-client.js rename : devtools/shared/client/main.js => devtools/shared/client/thread-client.js rename : devtools/shared/client/main.js => devtools/shared/client/trace-client.js rename : devtools/shared/client/main.js => devtools/shared/client/worker-client.js extra : rebase_source : e5f6978cb3e543af7073e234320af1f3afde356d
2017-09-28 18:29:55 +03:00
};
/**
* Set of protocol messages that are sent by the server without a prior request
* by the client.
*/
const UnsolicitedNotifications = {
networkEventUpdate: "networkEventUpdate",
tabDetached: "tabDetached",
tabListChanged: "tabListChanged",
addonListChanged: "addonListChanged",
workerListChanged: "workerListChanged",
serviceWorkerRegistrationListChanged: "serviceWorkerRegistrationList",
// newSource is still emitted on the ThreadActor, in addition to the
// BrowsingContextActor we have to keep it here until ThreadFront is converted to
// ThreadFront and/or we stop emitting this duplicated events.
// See ThreadActor.onNewSourceEvent.
newSource: "newSource",
Bug 1403895 - split main.js in mulitple files; r=ochameau. This patch keeps the main.js file so we don't have to change consumer code that uses objects fom this file. MozReview-Commit-ID: KhFoPPApE2L --HG-- rename : devtools/shared/client/main.js => devtools/shared/client/addon-client.js rename : devtools/shared/client/main.js => devtools/shared/client/array-buffer-client.js rename : devtools/shared/client/main.js => devtools/shared/client/breakpoint-client.js rename : devtools/shared/client/main.js => devtools/shared/client/constants.js rename : devtools/shared/client/main.js => devtools/shared/client/debugger-client.js rename : devtools/shared/client/main.js => devtools/shared/client/environment-client.js rename : devtools/shared/client/main.js => devtools/shared/client/event-source.js rename : devtools/shared/client/main.js => devtools/shared/client/long-string-client.js rename : devtools/shared/client/main.js => devtools/shared/client/object-client.js rename : devtools/shared/client/main.js => devtools/shared/client/property-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/root-client.js rename : devtools/shared/client/main.js => devtools/shared/client/source-client.js rename : devtools/shared/client/main.js => devtools/shared/client/symbol-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/tab-client.js rename : devtools/shared/client/main.js => devtools/shared/client/thread-client.js rename : devtools/shared/client/main.js => devtools/shared/client/trace-client.js rename : devtools/shared/client/main.js => devtools/shared/client/worker-client.js extra : rebase_source : e5f6978cb3e543af7073e234320af1f3afde356d
2017-09-28 18:29:55 +03:00
};
/**
* 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",
eventBreakpoint: "eventBreakpoint",
exception: "exception",
replayForcedPause: "replayForcedPause",
mutationBreakpoint: "mutationBreakpoint",
Bug 1403895 - split main.js in mulitple files; r=ochameau. This patch keeps the main.js file so we don't have to change consumer code that uses objects fom this file. MozReview-Commit-ID: KhFoPPApE2L --HG-- rename : devtools/shared/client/main.js => devtools/shared/client/addon-client.js rename : devtools/shared/client/main.js => devtools/shared/client/array-buffer-client.js rename : devtools/shared/client/main.js => devtools/shared/client/breakpoint-client.js rename : devtools/shared/client/main.js => devtools/shared/client/constants.js rename : devtools/shared/client/main.js => devtools/shared/client/debugger-client.js rename : devtools/shared/client/main.js => devtools/shared/client/environment-client.js rename : devtools/shared/client/main.js => devtools/shared/client/event-source.js rename : devtools/shared/client/main.js => devtools/shared/client/long-string-client.js rename : devtools/shared/client/main.js => devtools/shared/client/object-client.js rename : devtools/shared/client/main.js => devtools/shared/client/property-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/root-client.js rename : devtools/shared/client/main.js => devtools/shared/client/source-client.js rename : devtools/shared/client/main.js => devtools/shared/client/symbol-iterator-client.js rename : devtools/shared/client/main.js => devtools/shared/client/tab-client.js rename : devtools/shared/client/main.js => devtools/shared/client/thread-client.js rename : devtools/shared/client/main.js => devtools/shared/client/trace-client.js rename : devtools/shared/client/main.js => devtools/shared/client/worker-client.js extra : rebase_source : e5f6978cb3e543af7073e234320af1f3afde356d
2017-09-28 18:29:55 +03:00
};
module.exports = {
ThreadStateTypes,
UnsolicitedNotifications,
UnsolicitedPauses,
};