OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 /** | 103 /** |
104 * @param {!{object: ?SDK.RemoteObject, wasThrown: (boolean|undefined)}} res
ult | 104 * @param {!{object: ?SDK.RemoteObject, wasThrown: (boolean|undefined)}} res
ult |
105 * @this {Elements.PropertiesWidget} | 105 * @this {Elements.PropertiesWidget} |
106 */ | 106 */ |
107 function nodePrototypesReady(result) { | 107 function nodePrototypesReady(result) { |
108 if (!result.object || result.wasThrown) | 108 if (!result.object || result.wasThrown) |
109 return; | 109 return; |
110 | 110 |
111 var promise = result.object.getOwnPropertiesPromise().then(fillSection.bin
d(this)); | 111 var promise = result.object.getOwnPropertiesPromise(false /* generatePrevi
ew */).then(fillSection.bind(this)); |
112 result.object.release(); | 112 result.object.release(); |
113 return promise; | 113 return promise; |
114 } | 114 } |
115 | 115 |
116 /** | 116 /** |
117 * @param {!{properties: ?Array.<!SDK.RemoteObjectProperty>, internalPropert
ies: ?Array.<!SDK.RemoteObjectProperty>}} result | 117 * @param {!{properties: ?Array.<!SDK.RemoteObjectProperty>, internalPropert
ies: ?Array.<!SDK.RemoteObjectProperty>}} result |
118 * @this {Elements.PropertiesWidget} | 118 * @this {Elements.PropertiesWidget} |
119 */ | 119 */ |
120 function fillSection(result) { | 120 function fillSection(result) { |
121 if (!result || !result.properties) | 121 if (!result || !result.properties) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 return; | 165 return; |
166 var data = event.data; | 166 var data = event.data; |
167 var node = /** @type {!SDK.DOMNode} */ (data instanceof SDK.DOMNode ? data :
data.node); | 167 var node = /** @type {!SDK.DOMNode} */ (data instanceof SDK.DOMNode ? data :
data.node); |
168 if (this._node !== node) | 168 if (this._node !== node) |
169 return; | 169 return; |
170 this.update(); | 170 this.update(); |
171 } | 171 } |
172 }; | 172 }; |
173 | 173 |
174 Elements.PropertiesWidget._objectGroupName = 'properties-sidebar-pane'; | 174 Elements.PropertiesWidget._objectGroupName = 'properties-sidebar-pane'; |
OLD | NEW |