OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 function receivedPropertyNames(propertyNames) | 259 function receivedPropertyNames(propertyNames) |
260 { | 260 { |
261 RuntimeAgent.releaseObjectGroup("completion"); | 261 RuntimeAgent.releaseObjectGroup("completion"); |
262 if (!propertyNames) { | 262 if (!propertyNames) { |
263 completionsReadyCallback([]); | 263 completionsReadyCallback([]); |
264 return; | 264 return; |
265 } | 265 } |
266 var includeCommandLineAPI = (!dotNotation && !bracketNotation); | 266 var includeCommandLineAPI = (!dotNotation && !bracketNotation); |
267 if (includeCommandLineAPI) { | 267 if (includeCommandLineAPI) { |
268 const commandLineAPI = ["dir", "dirxml", "keys", "values", "prof
ile", "profileEnd", "monitorEvents", "unmonitorEvents", "inspect", "copy", "clea
r", | 268 const commandLineAPI = ["dir", "dirxml", "keys", "values", "prof
ile", "profileEnd", "monitorEvents", "unmonitorEvents", "inspect", "copy", "clea
r", |
269 "getEventListeners", "table", "$", "$$", "$x"]; | 269 "getEventListeners", "debug", "undebug", "monitor", "unmonit
or", "table", "$", "$$", "$x"]; |
270 for (var i = 0; i < commandLineAPI.length; ++i) | 270 for (var i = 0; i < commandLineAPI.length; ++i) |
271 propertyNames[commandLineAPI[i]] = true; | 271 propertyNames[commandLineAPI[i]] = true; |
272 } | 272 } |
273 this._reportCompletions(completionsReadyCallback, dotNotation, brack
etNotation, expressionString, prefix, Object.keys(propertyNames)); | 273 this._reportCompletions(completionsReadyCallback, dotNotation, brack
etNotation, expressionString, prefix, Object.keys(propertyNames)); |
274 } | 274 } |
275 }, | 275 }, |
276 | 276 |
277 /** | 277 /** |
278 * @param {function(!Array.<string>, number=)} completionsReadyCallback | 278 * @param {function(!Array.<string>, number=)} completionsReadyCallback |
279 * @param {boolean} dotNotation | 279 * @param {boolean} dotNotation |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 if (subtitle) { | 448 if (subtitle) { |
449 if (!name) | 449 if (!name) |
450 return subtitle; | 450 return subtitle; |
451 return name + "( " + subtitle + " )"; | 451 return name + "( " + subtitle + " )"; |
452 } | 452 } |
453 return "<iframe>"; | 453 return "<iframe>"; |
454 }, | 454 }, |
455 | 455 |
456 __proto__: WebInspector.Object.prototype | 456 __proto__: WebInspector.Object.prototype |
457 } | 457 } |
OLD | NEW |