зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277953 - Use ActorClassWithSpec for the FrameActor; r=ejpbruel
This commit is contained in:
Родитель
05e8f31b35
Коммит
5658c35c3b
|
@ -8,14 +8,13 @@
|
|||
|
||||
const { ActorPool } = require("devtools/server/actors/common");
|
||||
const { createValueGrip } = require("devtools/server/actors/object");
|
||||
const { ActorClass } = require("devtools/shared/protocol");
|
||||
const { ActorClassWithSpec } = require("devtools/shared/protocol");
|
||||
const { frameSpec } = require("devtools/shared/specs/frame");
|
||||
|
||||
/**
|
||||
* An actor for a specified stack frame.
|
||||
*/
|
||||
let FrameActor = ActorClass({
|
||||
typeName: "frame",
|
||||
|
||||
let FrameActor = ActorClassWithSpec(frameSpec, {
|
||||
/**
|
||||
* Creates the Frame actor.
|
||||
*
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
/* 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";
|
||||
|
||||
const {Arg, RetVal, generateActorSpec} = require("devtools/shared/protocol");
|
||||
|
||||
const frameSpec = generateActorSpec({
|
||||
typeName: "frame",
|
||||
|
||||
methods: {},
|
||||
});
|
||||
|
||||
exports.frameSpec = frameSpec;
|
|
@ -12,6 +12,7 @@ DevToolsModules(
|
|||
'call-watcher.js',
|
||||
'canvas.js',
|
||||
'css-properties.js',
|
||||
'frame.js',
|
||||
'heap-snapshot-file.js',
|
||||
'highlighters.js',
|
||||
'inspector.js',
|
||||
|
|
Загрузка…
Ссылка в новой задаче