timeline.js 757 B

1234567891011121314151617181920212223242526
  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 {
  6. Front,
  7. FrontClassWithSpec,
  8. } = require("devtools/shared/protocol");
  9. const { timelineSpec } = require("devtools/shared/specs/timeline");
  10. /**
  11. * TimelineFront, the front for the TimelineActor.
  12. */
  13. const TimelineFront = FrontClassWithSpec(timelineSpec, {
  14. initialize: function (client, { timelineActor }) {
  15. Front.prototype.initialize.call(this, client, { actor: timelineActor });
  16. this.manage(this);
  17. },
  18. destroy: function () {
  19. Front.prototype.destroy.call(this);
  20. },
  21. });
  22. exports.TimelineFront = TimelineFront;