Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1434)

Unified Diff: Source/devtools/front_end/sdk/RuntimeModel.js

Issue 266433004: DevTools: Remove rudimentary code from RuntimeModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698