framerate.js 719 B

1234567891011121314151617181920
  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. "use strict";
  5. const { Front, FrontClassWithSpec } = require("devtools/shared/protocol");
  6. const { framerateSpec } = require("devtools/shared/specs/framerate");
  7. /**
  8. * The corresponding Front object for the FramerateActor.
  9. */
  10. var FramerateFront = exports.FramerateFront = FrontClassWithSpec(framerateSpec, {
  11. initialize: function (client, { framerateActor }) {
  12. Front.prototype.initialize.call(this, client, { actor: framerateActor });
  13. this.manage(this);
  14. }
  15. });
  16. exports.FramerateFront = FramerateFront;