frame.js (786B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 const { frameSpec } = require("resource://devtools/shared/specs/frame.js"); 8 const { 9 FrontClassWithSpec, 10 registerFront, 11 } = require("resource://devtools/shared/protocol.js"); 12 13 class FrameFront extends FrontClassWithSpec(frameSpec) { 14 form(json) { 15 this.displayName = json.displayName; 16 this.arguments = json.arguments; 17 this.type = json.type; 18 this.where = json.where; 19 this.this = json.this; 20 this.data = json; 21 this.asyncCause = json.asyncCause; 22 this.state = json.state; 23 } 24 } 25 26 module.exports = FrameFront; 27 registerFront(FrameFront);