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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotProxy.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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) 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 copyrightdd 8 * * Redistributions of source code must retain the above copyrightdd
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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 442
443 /** 443 /**
444 * @param {number} nodeIndex 444 * @param {number} nodeIndex
445 * @param {function(?Array.<!WebInspector.HeapSnapshotCommon.AllocationStack Frame>)} callback 445 * @param {function(?Array.<!WebInspector.HeapSnapshotCommon.AllocationStack Frame>)} callback
446 */ 446 */
447 allocationStack: function(nodeIndex, callback) 447 allocationStack: function(nodeIndex, callback)
448 { 448 {
449 this.callMethod(callback, "allocationStack", nodeIndex); 449 this.callMethod(callback, "allocationStack", nodeIndex);
450 }, 450 },
451 451
452 /**
453 * @override
454 */
452 dispose: function() 455 dispose: function()
453 { 456 {
454 throw new Error("Should never be called"); 457 throw new Error("Should never be called");
455 }, 458 },
456 459
457 get nodeCount() 460 get nodeCount()
458 { 461 {
459 return this._staticData.nodeCount; 462 return this._staticData.nodeCount;
460 }, 463 },
461 464
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator 572 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator
570 * @return {!Promise<?>} 573 * @return {!Promise<?>}
571 */ 574 */
572 sortAndRewind: function(comparator) 575 sortAndRewind: function(comparator)
573 { 576 {
574 return this._callMethodPromise("sortAndRewind", comparator); 577 return this._callMethodPromise("sortAndRewind", comparator);
575 }, 578 },
576 579
577 __proto__: WebInspector.HeapSnapshotProxyObject.prototype 580 __proto__: WebInspector.HeapSnapshotProxyObject.prototype
578 }; 581 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698