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

Unified Diff: Source/devtools/front_end/RemoteObject.js

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 9 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/front_end/RemoteObject.js
diff --git a/Source/devtools/front_end/RemoteObject.js b/Source/devtools/front_end/RemoteObject.js
index 92cd90b3233e9a6d5a7171ea45ddd2cb82a5bd24..2a5420e3ebfe94f7c1e37ee4c2dd74ea854e0fe8 100644
--- a/Source/devtools/front_end/RemoteObject.js
+++ b/Source/devtools/front_end/RemoteObject.js
@@ -106,11 +106,19 @@ WebInspector.RemoteObject.prototype = {
},
/**
- * @return {?WebInspector.Target}
+ * @return {!WebInspector.Target}
*/
target: function()
{
- return null;
+ throw new Error("Target-less object");
+ },
+
+ /**
+ * @param {function(?DebuggerAgent.FunctionDetails)} callback
+ */
+ functionDetails: function(callback)
+ {
+ callback(null);
}
}
@@ -494,13 +502,21 @@ WebInspector.RemoteObjectImpl.prototype = {
},
/**
- * @return {?WebInspector.Target}
+ * @return {!WebInspector.Target}
*/
target: function()
{
return this._target;
},
+ /**
+ * @param {function(?DebuggerAgent.FunctionDetails)} callback
+ */
+ functionDetails: function(callback)
+ {
+ this._target.debuggerModel.functionDetails(this, callback)
+ },
+
__proto__: WebInspector.RemoteObject.prototype
};
« no previous file with comments | « Source/devtools/front_end/ProfileDataGridTree.js ('k') | Source/devtools/front_end/ResourceScriptMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698