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/. */
7 const {reflowSpec} = require("devtools/shared/specs/reflow");
8 const protocol = require("devtools/shared/protocol");
11 * Usage example of the reflow front:
13 * let front = ReflowFront(toolbox.target.client, toolbox.target.form);
14 * front.on("reflows", this._onReflows);
16 * // now wait for events to come
18 const ReflowFront = protocol.FrontClassWithSpec(reflowSpec, {
19 initialize: function(client, {reflowActor}) {
20 protocol.Front.prototype.initialize.call(this, client, {actor: reflowActor});
25 protocol.Front.prototype.destroy.call(this);
29 exports.ReflowFront = ReflowFront;