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

Unified Diff: Source/devtools/blink/chromeServerProfile/Default/Cache/f_000065

Issue 242263007: Add <label> to items in Event Listener Breakpoint of Chrome Dev Tools Base URL: https://chromium.googlesource.com/chromium/blink@master
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
Index: Source/devtools/blink/chromeServerProfile/Default/Cache/f_000065
diff --git a/Source/devtools/front_end/RuntimeModel.js b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000065
similarity index 94%
copy from Source/devtools/front_end/RuntimeModel.js
copy to Source/devtools/blink/chromeServerProfile/Default/Cache/f_000065
index e6ea6667dd0586a463687d9794e9c62612705dda..aa376b6ce9014e98138019b19034b06455940e25 100644
--- a/Source/devtools/front_end/RuntimeModel.js
+++ b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000065
@@ -59,9 +59,9 @@ WebInspector.RuntimeModel.prototype = {
addWorkerContextList: function(url)
{
console.assert(this.target().isWorkerTarget(), "Worker context list was added in a non-worker target");
- var fakeContextList = new WebInspector.WorkerExecutionContextList(this.target(), "worker", url);
+ var fakeContextList = new WebInspector.WorkerExecutionContextList("worker", url);
this._addContextList(fakeContextList);
- var fakeExecutionContext = new WebInspector.ExecutionContext(this.target(), 0, url, true);
+ var fakeExecutionContext = new WebInspector.ExecutionContext(undefined, url, true);
fakeContextList._addExecutionContext(fakeExecutionContext);
},
@@ -105,7 +105,7 @@ WebInspector.RuntimeModel.prototype = {
{
console.assert(!this.target().isWorkerTarget() ,"Frame was added in a worker target.t");
var frame = /** @type {!WebInspector.ResourceTreeFrame} */ (event.data);
- var contextList = new WebInspector.FrameExecutionContextList(this.target(), frame);
+ var contextList = new WebInspector.FrameExecutionContextList(frame);
this._addContextList(contextList);
},
@@ -151,7 +151,7 @@ WebInspector.RuntimeModel.prototype = {
{
var contextList = this._contextListById[context.frameId];
console.assert(contextList);
- contextList._addExecutionContext(new WebInspector.ExecutionContext(this.target(), context.id, context.name, context.isPageContext));
+ contextList._addExecutionContext(new WebInspector.ExecutionContext(context.id, context.name, context.isPageContext));
},
/**
@@ -435,24 +435,14 @@ WebInspector.RuntimeDispatcher.prototype = {
executionContextCreated: function(context)
{
this._runtimeModel._executionContextCreated(context);
- },
-
- executionContextDestroyed: function (executionContextId)
- {
}
}
/**
* @constructor
- * @extends {WebInspector.TargetAware}
- * @param {!WebInspector.Target} target
- * @param {number} id
- * @param {string} name
- * @param {boolean} isPageContext
*/
-WebInspector.ExecutionContext = function(target, id, name, isPageContext)
+WebInspector.ExecutionContext = function(id, name, isPageContext)
{
- WebInspector.TargetAware.call(this, target);
this.id = id;
this.name = (isPageContext && !name) ? "<page context>" : name;
this.isMainWorldContext = isPageContext;
@@ -473,23 +463,12 @@ WebInspector.ExecutionContext.comparator = function(a, b)
return a.name.localeCompare(b.name);
}
-WebInspector.ExecutionContext.prototype = {
- makeCurrent: function()
- {
- this.target().runtimeModel.setCurrentExecutionContext(this);
- },
-
- __proto__: WebInspector.TargetAware.prototype
-}
-
/**
* @constructor
- * @extends {WebInspector.TargetAwareObject}
- * @param {!WebInspector.Target} target
+ * @extends {WebInspector.Object}
*/
-WebInspector.ExecutionContextList = function(target)
+WebInspector.ExecutionContextList = function()
{
- WebInspector.TargetAwareObject.call(this, target);
this._executionContexts = [];
}
@@ -573,19 +552,18 @@ WebInspector.ExecutionContextList.prototype =
throw "Not implemented";
},
- __proto__: WebInspector.TargetAwareObject.prototype
+ __proto__: WebInspector.Object.prototype
}
/**
* @constructor
* @extends {WebInspector.ExecutionContextList}
- * @param {!WebInspector.Target} target
* @param {!WebInspector.ResourceTreeFrame} frame
*/
-WebInspector.FrameExecutionContextList = function(target, frame)
+WebInspector.FrameExecutionContextList = function(frame)
{
- WebInspector.ExecutionContextList.call(this, target);
+ WebInspector.ExecutionContextList.call(this);
this._frame = frame;
}
@@ -629,13 +607,12 @@ WebInspector.FrameExecutionContextList.prototype = {
/**
* @constructor
* @extends {WebInspector.ExecutionContextList}
- * @param {!WebInspector.Target} target
* @param {string} id
* @param {string} url
*/
-WebInspector.WorkerExecutionContextList = function(target, id, url)
+WebInspector.WorkerExecutionContextList = function(id, url)
{
- WebInspector.ExecutionContextList.call(this, target);
+ WebInspector.ExecutionContextList.call(this);
this._url = url;
this._id = id;
}

Powered by Google App Engine
This is Rietveld 408576698