Bug 1397330 - Define all specs and fronts relying on implicit require. r=jdescottes

MozReview-Commit-ID: HzcEWauFKjz

--HG--
extra : rebase_source : 2ce93dd948997a2b82cf83cf055f14e7e7252a9a
This commit is contained in:
Alexandre Poirot 2017-09-13 22:48:43 +02:00
Родитель 6f86767a47
Коммит c1e85368f0
7 изменённых файлов: 20 добавлений и 8 удалений

Просмотреть файл

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
require("devtools/shared/fronts/stylesheets");
const {
Front,
FrontClassWithSpec,

Просмотреть файл

@ -9,7 +9,6 @@ const {
generateActorSpec,
types
} = require("devtools/shared/protocol");
require("devtools/shared/specs/inspector");
/**
* Sent with the 'mutations' event as part of an array of changes, used to

Просмотреть файл

@ -5,8 +5,6 @@
const {Arg, RetVal, generateActorSpec} = require("devtools/shared/protocol");
require("devtools/shared/specs/stylesheets");
const cssUsageSpec = generateActorSpec({
typeName: "cssUsage",

Просмотреть файл

@ -34,6 +34,26 @@ const Types = [
spec: "devtools/shared/specs/string",
front: "devtools/shared/fronts/string",
},
{
types: ["originalsource", "mediarule", "stylesheet", "stylesheets"],
spec: "devtools/shared/specs/stylesheets",
front: "devtools/shared/fronts/stylesheets",
},
{
types: ["imageData", "domnode"],
spec: "devtools/shared/specs/node",
front: "devtools/shared/fronts/inspector",
},
{
types: ["domwalker"],
spec: "devtools/shared/specs/inspector",
front: "devtools/shared/fronts/inspector",
},
{
types: ["performance-recording"],
spec: "devtools/shared/specs/performance-recording",
front: "devtools/shared/fronts/performancec-recording",
},
];
const lazySpecs = new Map();

Просмотреть файл

@ -5,7 +5,6 @@
"use strict";
const { Arg, generateActorSpec, RetVal } = require("devtools/shared/protocol");
require("devtools/shared/specs/node");
const gridSpec = generateActorSpec({
typeName: "grid",

Просмотреть файл

@ -4,7 +4,6 @@
"use strict";
const { Arg, RetVal, generateActorSpec } = require("devtools/shared/protocol");
require("devtools/shared/specs/performance-recording");
const performanceSpec = generateActorSpec({
typeName: "performance",

Просмотреть файл

@ -10,8 +10,6 @@ const {
generateActorSpec,
types
} = require("devtools/shared/protocol");
require("devtools/shared/specs/node");
require("devtools/shared/specs/stylesheets");
// Predeclare the domstylerule actor type
types.addActorType("domstylerule");