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/. */
10 } = require("resource://devtools/shared/protocol.js");
11 const { changesSpec
} = require("resource://devtools/shared/specs/changes.js");
14 * ChangesFront, the front object for the ChangesActor
16 class ChangesFront
extends FrontClassWithSpec(changesSpec
) {
17 constructor(client
, targetFront
, parentFront
) {
18 super(client
, targetFront
, parentFront
);
20 // Attribute name from which to retrieve the actorID out of the target actor's form
21 this.formAttributeName
= "changesActor";
25 // Ensure the corresponding ChangesActor is immediately available and ready to track
26 // changes by calling a method on it. Actors are lazy and won't be created until
32 exports
.ChangesFront
= ChangesFront
;
33 registerFront(ChangesFront
);