tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

reflow.js (865B)


      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 {
      8  Arg,
      9  generateActorSpec,
     10 } = require("resource://devtools/shared/protocol.js");
     11 
     12 const reflowSpec = generateActorSpec({
     13  typeName: "reflow",
     14 
     15  events: {
     16    /**
     17     * The reflows event is emitted when reflows have been detected. The event
     18     * is sent with an array of reflows that occured. Each item has the
     19     * following properties:
     20     * - start {Number}
     21     * - end {Number}
     22     * - isInterruptible {Boolean}
     23     */
     24    reflows: {
     25      type: "reflows",
     26      reflows: Arg(0, "array:json"),
     27    },
     28  },
     29 
     30  methods: {
     31    start: { oneway: true },
     32    stop: { oneway: true },
     33  },
     34 });
     35 
     36 exports.reflowSpec = reflowSpec;