How to use the devtools/server/protocol.Actor function in devtools

To help you get started, we’ve selected a few devtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joewalker / devtools.html / server / actors / webgl.js View on Github external
initialize: function(conn, program, shader, proxy) {
    protocol.Actor.prototype.initialize.call(this, conn);
    this.program = program;
    this.shader = shader;
    this.text = proxy.getShaderSource(shader);
    this.linkedProxy = proxy;
  },
github joewalker / devtools.html / server / actors / stylesheets.js View on Github external
initialize: function (conn, tabActor) {
    protocol.Actor.prototype.initialize.call(this, null);

    this.parentActor = tabActor;
  },
github joewalker / devtools.html / server / actors / string.js View on Github external
initialize: function(conn, str) {
    protocol.Actor.prototype.initialize.call(this, conn);
    this.str = str;
    this.short = (this.str.length < LONG_STRING_LENGTH);
  },
github joewalker / devtools.html / server / actors / profiler.js View on Github external
initialize: function (conn) {
    protocol.Actor.prototype.initialize.call(this, conn);
    this._onProfilerEvent = this._onProfilerEvent.bind(this);

    this.bridge = new Profiler();
    events.on(this.bridge, "*", this._onProfilerEvent);
  },
github joewalker / devtools.html / server / actors / webaudio.js View on Github external
destroy: function(conn) {
    protocol.Actor.prototype.destroy.call(this, conn);
    this.finalize();
  },
github joewalker / devtools.html / server / actors / promises.js View on Github external
destroy: function() {
    protocol.Actor.prototype.destroy.call(this, this.conn);

    if (this.state === "attached") {
      this.detach();
    }
  },
github joewalker / devtools.html / server / actors / memprof.js View on Github external
initialize: function(conn) {
    protocol.Actor.prototype.initialize.call(this, conn);
    this._profiler = Cc["@mozilla.org/tools/memory-profiler;1"]
      .getService(Ci.nsIMemoryProfiler);
  },
github joewalker / devtools.html / server / actors / actor-registry.js View on Github external
initialize: function (conn, options) {
    protocol.Actor.prototype.initialize.call(this, conn);

    this.options = options;
  },
github joewalker / devtools.html / server / actors / memory.js View on Github external
destroy: function() {
    this.bridge.off("garbage-collection", this._onGarbageCollection);
    this.bridge.off("allocations", this._onAllocations);
    this.bridge.destroy();
    protocol.Actor.prototype.destroy.call(this);
  },
github joewalker / devtools.html / server / actors / csscoverage.js View on Github external
destroy: function() {
    this._tabActor = undefined;

    delete this._onTabLoad;
    delete this._onChange;

    protocol.Actor.prototype.destroy.call(this);
  },