| Index: Source/devtools/front_end/sdk/RuntimeModel.js
|
| diff --git a/Source/devtools/front_end/sdk/RuntimeModel.js b/Source/devtools/front_end/sdk/RuntimeModel.js
|
| index 5e78b88f2953fe6e9fc21ef63f8156361465d36f..adfe382e4e74e5dcecbf2e772659558a1baf3559 100644
|
| --- a/Source/devtools/front_end/sdk/RuntimeModel.js
|
| +++ b/Source/devtools/front_end/sdk/RuntimeModel.js
|
| @@ -404,193 +404,6 @@ WebInspector.ExecutionContext.prototype = {
|
| }
|
|
|
| /**
|
| - * @constructor
|
| - * @extends {WebInspector.TargetAwareObject}
|
| - * @param {!WebInspector.Target} target
|
| - */
|
| -WebInspector.ExecutionContextList = function(target)
|
| -{
|
| - WebInspector.TargetAwareObject.call(this, target);
|
| - this._executionContexts = [];
|
| -}
|
| -
|
| -WebInspector.ExecutionContextList.EventTypes = {
|
| - Reset: "Reset",
|
| - ContextAdded: "ContextAdded"
|
| -}
|
| -
|
| -WebInspector.ExecutionContextList.prototype =
|
| -{
|
| - _reset: function()
|
| - {
|
| - this._executionContexts = [];
|
| - this.dispatchEventToListeners(WebInspector.ExecutionContextList.EventTypes.Reset, this);
|
| - },
|
| -
|
| - /**
|
| - * @param {!WebInspector.ExecutionContext} context
|
| - */
|
| - _addExecutionContext: function(context)
|
| - {
|
| - var insertAt = insertionIndexForObjectInListSortedByFunction(context, this._executionContexts, WebInspector.ExecutionContext.comparator);
|
| - this._executionContexts.splice(insertAt, 0, context);
|
| - this.dispatchEventToListeners(WebInspector.ExecutionContextList.EventTypes.ContextAdded, this);
|
| - },
|
| -
|
| - /**
|
| - * @return {!Array.<!WebInspector.ExecutionContext>}
|
| - */
|
| - executionContexts: function()
|
| - {
|
| - return this._executionContexts;
|
| - },
|
| -
|
| - /**
|
| - * @return {!WebInspector.ExecutionContext}
|
| - */
|
| - mainWorldContext: function()
|
| - {
|
| - return this._executionContexts[0];
|
| - },
|
| -
|
| - /**
|
| - * @param {string} securityOrigin
|
| - * @return {?WebInspector.ExecutionContext}
|
| - */
|
| - contextBySecurityOrigin: function(securityOrigin)
|
| - {
|
| - for (var i = 0; i < this._executionContexts.length; ++i) {
|
| - var context = this._executionContexts[i];
|
| - if (!context.isMainWorldContext && context.name === securityOrigin)
|
| - return context;
|
| - }
|
| - return null;
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - id: function()
|
| - {
|
| - // Overridden by subclasses
|
| - throw "Not implemented";
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - url: function()
|
| - {
|
| - // Overridden by subclasses
|
| - throw "Not implemented";
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - displayName: function()
|
| - {
|
| - // Overridden by subclasses
|
| - throw "Not implemented";
|
| - },
|
| -
|
| - __proto__: WebInspector.TargetAwareObject.prototype
|
| -}
|
| -
|
| -
|
| -/**
|
| - * @constructor
|
| - * @extends {WebInspector.ExecutionContextList}
|
| - * @param {!WebInspector.Target} target
|
| - * @param {!WebInspector.ResourceTreeFrame} frame
|
| - */
|
| -WebInspector.FrameExecutionContextList = function(target, frame)
|
| -{
|
| - WebInspector.ExecutionContextList.call(this, target);
|
| - this._frame = frame;
|
| -}
|
| -
|
| -WebInspector.FrameExecutionContextList.prototype = {
|
| - /**
|
| - * @param {!WebInspector.ResourceTreeFrame} frame
|
| - */
|
| - _frameNavigated: function(frame)
|
| - {
|
| - this._frame = frame;
|
| - this._reset();
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - id: function()
|
| - {
|
| - return this._frame.id;
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - url: function()
|
| - {
|
| - return this._frame.url;
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - displayName: function()
|
| - {
|
| - return this._frame.displayName();
|
| - },
|
| -
|
| - __proto__: WebInspector.ExecutionContextList.prototype
|
| -}
|
| -
|
| -/**
|
| - * @constructor
|
| - * @extends {WebInspector.ExecutionContextList}
|
| - * @param {!WebInspector.Target} target
|
| - * @param {string} id
|
| - * @param {string} url
|
| - */
|
| -WebInspector.WorkerExecutionContextList = function(target, id, url)
|
| -{
|
| - WebInspector.ExecutionContextList.call(this, target);
|
| - this._url = url;
|
| - this._id = id;
|
| -}
|
| -
|
| -WebInspector.WorkerExecutionContextList.prototype = {
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - id: function()
|
| - {
|
| - return this._id;
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - url: function()
|
| - {
|
| - return this._url;
|
| - },
|
| -
|
| - /**
|
| - * @return {string}
|
| - */
|
| - displayName: function()
|
| - {
|
| - return this._url;
|
| - },
|
| -
|
| - __proto__: WebInspector.ExecutionContextList.prototype
|
| -}
|
| -
|
| -/**
|
| * @type {!WebInspector.RuntimeModel}
|
| */
|
| WebInspector.runtimeModel;
|
|
|