Bug 1277953 - Use ActorClassWithSpec for the FrameActor; r=ejpbruel

This commit is contained in:
Nick Fitzgerald 2016-06-06 10:24:34 -07:00
Родитель 05e8f31b35
Коммит 5658c35c3b
3 изменённых файлов: 18 добавлений и 4 удалений

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

@ -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',