director-registry.js 765 B

12345678910111213141516171819202122
  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 {directorRegistrySpec} = require("devtools/shared/specs/director-registry");
  6. const protocol = require("devtools/shared/protocol");
  7. /**
  8. * The corresponding Front object for the DirectorRegistryActor.
  9. */
  10. const DirectorRegistryFront = protocol.FrontClassWithSpec(directorRegistrySpec, {
  11. initialize: function (client, { directorRegistryActor }) {
  12. protocol.Front.prototype.initialize.call(this, client, {
  13. actor: directorRegistryActor
  14. });
  15. this.manage(this);
  16. }
  17. });
  18. exports.DirectorRegistryFront = DirectorRegistryFront;