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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js

Issue 2112673003: [DevTools] Move suspended generator location to internal properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return new Promise(promiseConstructor.bind(this)); 299 return new Promise(promiseConstructor.bind(this));
300 300
301 /** 301 /**
302 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} succes s 302 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} succes s
303 * @this {WebInspector.RemoteObject} 303 * @this {WebInspector.RemoteObject}
304 */ 304 */
305 function promiseConstructor(success) 305 function promiseConstructor(success)
306 { 306 {
307 this.functionDetails(success); 307 this.functionDetails(success);
308 } 308 }
309 },
310
311 /**
312 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal lback
313 */
314 generatorObjectDetails: function(callback)
315 {
316 callback(null);
317 } 309 }
318 } 310 }
319 311
320 /** 312 /**
321 * @param {*} value 313 * @param {*} value
322 * @return {!WebInspector.RemoteObject} 314 * @return {!WebInspector.RemoteObject}
323 */ 315 */
324 WebInspector.RemoteObject.fromLocalObject = function(value) 316 WebInspector.RemoteObject.fromLocalObject = function(value)
325 { 317 {
326 return new WebInspector.LocalJSONObject(value); 318 return new WebInspector.LocalJSONObject(value);
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 862
871 /** 863 /**
872 * @override 864 * @override
873 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} callback 865 * @param {function(?WebInspector.DebuggerModel.FunctionDetails)} callback
874 */ 866 */
875 functionDetails: function(callback) 867 functionDetails: function(callback)
876 { 868 {
877 this._debuggerModel.functionDetails(this, callback); 869 this._debuggerModel.functionDetails(this, callback);
878 }, 870 },
879 871
880 /**
881 * @override
882 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal lback
883 */
884 generatorObjectDetails: function(callback)
885 {
886 this._debuggerModel.generatorObjectDetails(this, callback);
887 },
888
889 __proto__: WebInspector.RemoteObject.prototype 872 __proto__: WebInspector.RemoteObject.prototype
890 }; 873 };
891 874
892 875
893 /** 876 /**
894 * @param {!WebInspector.RemoteObject} object 877 * @param {!WebInspector.RemoteObject} object
895 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns pector.RemoteObjectProperty>)} callback 878 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns pector.RemoteObjectProperty>)} callback
896 */ 879 */
897 WebInspector.RemoteObject.loadFromObjectPerProto = function(object, callback) 880 WebInspector.RemoteObject.loadFromObjectPerProto = function(object, callback)
898 { 881 {
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 }, 1543 },
1561 1544
1562 /** 1545 /**
1563 * @return {!WebInspector.RemoteObject} 1546 * @return {!WebInspector.RemoteObject}
1564 */ 1547 */
1565 object: function() 1548 object: function()
1566 { 1549 {
1567 return this._object; 1550 return this._object;
1568 } 1551 }
1569 } 1552 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698