Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 11 matching lines...) Expand all Loading... | |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @fileoverview | |
| 33 * @suppress {es5Strict} | |
|
aandrey
2014/06/17 11:33:54
put a comment or FIXME why suppressing
apavlov
2014/06/17 12:46:03
Done.
| |
| 34 */ | |
| 35 | |
| 36 /** | |
| 32 * @constructor | 37 * @constructor |
| 33 * @extends {WebInspector.VBox} | 38 * @extends {WebInspector.VBox} |
| 34 * @param {!WebInspector.ProfileType.DataDisplayDelegate} dataDisplayDelegate | 39 * @param {!WebInspector.ProfileType.DataDisplayDelegate} dataDisplayDelegate |
| 35 * @param {!WebInspector.HeapProfileHeader} profile | 40 * @param {!WebInspector.HeapProfileHeader} profile |
| 36 */ | 41 */ |
| 37 WebInspector.HeapSnapshotView = function(dataDisplayDelegate, profile) | 42 WebInspector.HeapSnapshotView = function(dataDisplayDelegate, profile) |
| 38 { | 43 { |
| 39 WebInspector.VBox.call(this); | 44 WebInspector.VBox.call(this); |
| 40 | 45 |
| 41 this.element.classList.add("heap-snapshot-view"); | 46 this.element.classList.add("heap-snapshot-view"); |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1191 return WebInspector.UIString("HEAP SNAPSHOTS"); | 1196 return WebInspector.UIString("HEAP SNAPSHOTS"); |
| 1192 }, | 1197 }, |
| 1193 | 1198 |
| 1194 get description() | 1199 get description() |
| 1195 { | 1200 { |
| 1196 return WebInspector.UIString("Heap snapshot profiles show memory distrib ution among your page's JavaScript objects and related DOM nodes."); | 1201 return WebInspector.UIString("Heap snapshot profiles show memory distrib ution among your page's JavaScript objects and related DOM nodes."); |
| 1197 }, | 1202 }, |
| 1198 | 1203 |
| 1199 /** | 1204 /** |
| 1200 * @override | 1205 * @override |
| 1201 * @param {!string} title | 1206 * @param {string} title |
| 1202 * @return {!WebInspector.ProfileHeader} | 1207 * @return {!WebInspector.ProfileHeader} |
| 1203 */ | 1208 */ |
| 1204 createProfileLoadedFromFile: function(title) | 1209 createProfileLoadedFromFile: function(title) |
| 1205 { | 1210 { |
| 1206 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetMan ager.activeTarget()); | 1211 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetMan ager.activeTarget()); |
| 1207 return new WebInspector.HeapProfileHeader(target, this, title); | 1212 return new WebInspector.HeapProfileHeader(target, this, title); |
| 1208 }, | 1213 }, |
| 1209 | 1214 |
| 1210 _takeHeapSnapshot: function(callback) | 1215 _takeHeapSnapshot: function(callback) |
| 1211 { | 1216 { |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2270 urlElement = this._linkifier.linkifyRawLocation(rawLocation) ; | 2275 urlElement = this._linkifier.linkifyRawLocation(rawLocation) ; |
| 2271 if (!urlElement) | 2276 if (!urlElement) |
| 2272 urlElement = this._linkifier.linkifyLocation(this._target, f rame.scriptName, frame.line - 1, frame.column - 1); | 2277 urlElement = this._linkifier.linkifyLocation(this._target, f rame.scriptName, frame.line - 1, frame.column - 1); |
| 2273 frameDiv.appendChild(urlElement); | 2278 frameDiv.appendChild(urlElement); |
| 2274 } | 2279 } |
| 2275 } | 2280 } |
| 2276 }, | 2281 }, |
| 2277 | 2282 |
| 2278 __proto__: WebInspector.View.prototype | 2283 __proto__: WebInspector.View.prototype |
| 2279 } | 2284 } |
| OLD | NEW |