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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/PropertiesWidget.js

Issue 2629073004: ac (Closed)
Patch Set: Created 3 years, 11 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) 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
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(Runtime.experiments.is Enabled('objectPreviews'))
112 .then(fillSection.bind(this));
112 result.object.release(); 113 result.object.release();
113 return promise; 114 return promise;
114 } 115 }
115 116
116 /** 117 /**
117 * @param {!{properties: ?Array.<!SDK.RemoteObjectProperty>, internalPropert ies: ?Array.<!SDK.RemoteObjectProperty>}} result 118 * @param {!{properties: ?Array.<!SDK.RemoteObjectProperty>, internalPropert ies: ?Array.<!SDK.RemoteObjectProperty>}} result
118 * @this {Elements.PropertiesWidget} 119 * @this {Elements.PropertiesWidget}
119 */ 120 */
120 function fillSection(result) { 121 function fillSection(result) {
121 if (!result || !result.properties) 122 if (!result || !result.properties)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return; 166 return;
166 var data = event.data; 167 var data = event.data;
167 var node = /** @type {!SDK.DOMNode} */ (data instanceof SDK.DOMNode ? data : data.node); 168 var node = /** @type {!SDK.DOMNode} */ (data instanceof SDK.DOMNode ? data : data.node);
168 if (this._node !== node) 169 if (this._node !== node)
169 return; 170 return;
170 this.update(); 171 this.update();
171 } 172 }
172 }; 173 };
173 174
174 Elements.PropertiesWidget._objectGroupName = 'properties-sidebar-pane'; 175 Elements.PropertiesWidget._objectGroupName = 'properties-sidebar-pane';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698