| 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 } | 587 } |
| 588 | 588 |
| 589 /** | 589 /** |
| 590 * @param {?WebInspector.RemoteObject} object | 590 * @param {?WebInspector.RemoteObject} object |
| 591 * @this {WebInspector.ExecutionContext} | 591 * @this {WebInspector.ExecutionContext} |
| 592 */ | 592 */ |
| 593 function completionsForObject(object) | 593 function completionsForObject(object) |
| 594 { | 594 { |
| 595 if (!object) | 595 if (!object) |
| 596 receivedPropertyNames.call(this, null); | 596 receivedPropertyNames.call(this, null); |
| 597 else if (object.type === "object") | 597 else if (object.type === "object" || object.type === "function") |
| 598 object.callFunctionJSON(getCompletions, [WebInspector.Remote
Object.toCallArgument(object.subtype)], receivedPropertyNames.bind(this)); | 598 object.callFunctionJSON(getCompletions, [WebInspector.Remote
Object.toCallArgument(object.subtype)], receivedPropertyNames.bind(this)); |
| 599 else if (object.type === "string" || object.type === "number" ||
object.type === "boolean") | 599 else if (object.type === "string" || object.type === "number" ||
object.type === "boolean") |
| 600 this.evaluate("(" + getCompletions + ")(\"" + result.type +
"\")", "completion", false, true, true, false, false, receivedPropertyNamesFromE
val.bind(this)); | 600 this.evaluate("(" + getCompletions + ")(\"" + result.type +
"\")", "completion", false, true, true, false, false, receivedPropertyNamesFromE
val.bind(this)); |
| 601 } | 601 } |
| 602 | 602 |
| 603 extractTarget(result).then(completionsForObject.bind(this)); | 603 extractTarget(result).then(completionsForObject.bind(this)); |
| 604 } | 604 } |
| 605 | 605 |
| 606 /** | 606 /** |
| 607 * @param {?WebInspector.RemoteObject} notRelevant | 607 * @param {?WebInspector.RemoteObject} notRelevant |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 /** | 851 /** |
| 852 * @param {string} listenerType | 852 * @param {string} listenerType |
| 853 */ | 853 */ |
| 854 setListenerType: function(listenerType) | 854 setListenerType: function(listenerType) |
| 855 { | 855 { |
| 856 this._listenerType = listenerType; | 856 this._listenerType = listenerType; |
| 857 }, | 857 }, |
| 858 | 858 |
| 859 __proto__: WebInspector.SDKObject.prototype | 859 __proto__: WebInspector.SDKObject.prototype |
| 860 } | 860 } |
| OLD | NEW |