OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 * @param {function(this:Object)} functionDeclaration | 99 * @param {function(this:Object)} functionDeclaration |
100 * @param {!Array.<!RuntimeAgent.CallArgument>|undefined} args | 100 * @param {!Array.<!RuntimeAgent.CallArgument>|undefined} args |
101 * @param {function(*)} callback | 101 * @param {function(*)} callback |
102 */ | 102 */ |
103 callFunctionJSON: function(functionDeclaration, args, callback) | 103 callFunctionJSON: function(functionDeclaration, args, callback) |
104 { | 104 { |
105 throw "Not implemented"; | 105 throw "Not implemented"; |
106 }, | 106 }, |
107 | 107 |
108 /** | 108 /** |
109 * @return {?WebInspector.Target} | 109 * @return {!WebInspector.Target} |
110 */ | 110 */ |
111 target: function() | 111 target: function() |
112 { | 112 { |
113 return null; | 113 throw new Error("Target-less object"); |
| 114 }, |
| 115 |
| 116 /** |
| 117 * @param {function(?DebuggerAgent.FunctionDetails)} callback |
| 118 */ |
| 119 functionDetails: function(callback) |
| 120 { |
| 121 callback(null); |
114 } | 122 } |
115 } | 123 } |
116 | 124 |
117 /** | 125 /** |
118 * @param {*} value | 126 * @param {*} value |
119 * @return {!WebInspector.RemoteObject} | 127 * @return {!WebInspector.RemoteObject} |
120 */ | 128 */ |
121 WebInspector.RemoteObject.fromLocalObject = function(value) | 129 WebInspector.RemoteObject.fromLocalObject = function(value) |
122 { | 130 { |
123 return new WebInspector.LocalJSONObject(value); | 131 return new WebInspector.LocalJSONObject(value); |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 if (this.subtype !== "array") | 495 if (this.subtype !== "array") |
488 return 0; | 496 return 0; |
489 | 497 |
490 var matches = this._description.match(/\[([0-9]+)\]/); | 498 var matches = this._description.match(/\[([0-9]+)\]/); |
491 if (!matches) | 499 if (!matches) |
492 return 0; | 500 return 0; |
493 return parseInt(matches[1], 10); | 501 return parseInt(matches[1], 10); |
494 }, | 502 }, |
495 | 503 |
496 /** | 504 /** |
497 * @return {?WebInspector.Target} | 505 * @return {!WebInspector.Target} |
498 */ | 506 */ |
499 target: function() | 507 target: function() |
500 { | 508 { |
501 return this._target; | 509 return this._target; |
502 }, | 510 }, |
503 | 511 |
| 512 /** |
| 513 * @param {function(?DebuggerAgent.FunctionDetails)} callback |
| 514 */ |
| 515 functionDetails: function(callback) |
| 516 { |
| 517 this._target.debuggerModel.functionDetails(this, callback) |
| 518 }, |
| 519 |
504 __proto__: WebInspector.RemoteObject.prototype | 520 __proto__: WebInspector.RemoteObject.prototype |
505 }; | 521 }; |
506 | 522 |
507 | 523 |
508 /** | 524 /** |
509 * @param {!WebInspector.RemoteObject} object | 525 * @param {!WebInspector.RemoteObject} object |
510 * @param {boolean} flattenProtoChain | 526 * @param {boolean} flattenProtoChain |
511 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns
pector.RemoteObjectProperty>)} callback | 527 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns
pector.RemoteObjectProperty>)} callback |
512 */ | 528 */ |
513 WebInspector.RemoteObject.loadFromObject = function(object, flattenProtoChain, c
allback) | 529 WebInspector.RemoteObject.loadFromObject = function(object, flattenProtoChain, c
allback) |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 result = functionDeclaration.apply(target, rawArgs); | 941 result = functionDeclaration.apply(target, rawArgs); |
926 } catch (e) { | 942 } catch (e) { |
927 result = null; | 943 result = null; |
928 } | 944 } |
929 | 945 |
930 callback(result); | 946 callback(result); |
931 }, | 947 }, |
932 | 948 |
933 __proto__: WebInspector.RemoteObject.prototype | 949 __proto__: WebInspector.RemoteObject.prototype |
934 } | 950 } |
OLD | NEW |