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

Side by Side Diff: Source/devtools/front_end/profiler/CPUProfileView.js

Issue 356843008: Fix private member access violations in profiler module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed apavlov's comments Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 * @constructor 675 * @constructor
676 * @extends {WebInspector.ProfileHeader} 676 * @extends {WebInspector.ProfileHeader}
677 * @implements {WebInspector.OutputStream} 677 * @implements {WebInspector.OutputStream}
678 * @implements {WebInspector.OutputStreamDelegate} 678 * @implements {WebInspector.OutputStreamDelegate}
679 * @param {!WebInspector.Target} target 679 * @param {!WebInspector.Target} target
680 * @param {!WebInspector.CPUProfileType} type 680 * @param {!WebInspector.CPUProfileType} type
681 * @param {string=} title 681 * @param {string=} title
682 */ 682 */
683 WebInspector.CPUProfileHeader = function(target, type, title) 683 WebInspector.CPUProfileHeader = function(target, type, title)
684 { 684 {
685 WebInspector.ProfileHeader.call(this, target, type, title || WebInspector.UI String("Profile %d", type._nextProfileUid)); 685 WebInspector.ProfileHeader.call(this, target, type, title || WebInspector.UI String("Profile %d", type.nextProfileUid()));
686 this._tempFile = null; 686 this._tempFile = null;
687 } 687 }
688 688
689 WebInspector.CPUProfileHeader.prototype = { 689 WebInspector.CPUProfileHeader.prototype = {
690 onTransferStarted: function() 690 onTransferStarted: function()
691 { 691 {
692 this._jsonifiedProfile = ""; 692 this._jsonifiedProfile = "";
693 this.updateStatus(WebInspector.UIString("Loading\u2026 %s", Number.bytes ToString(this._jsonifiedProfile.length)), true); 693 this.updateStatus(WebInspector.UIString("Loading\u2026 %s", Number.bytes ToString(this._jsonifiedProfile.length)), true);
694 }, 694 },
695 695
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 _notifyTempFileReady: function() 888 _notifyTempFileReady: function()
889 { 889 {
890 if (this._onTempFileReady) { 890 if (this._onTempFileReady) {
891 this._onTempFileReady(); 891 this._onTempFileReady();
892 this._onTempFileReady = null; 892 this._onTempFileReady = null;
893 } 893 }
894 }, 894 },
895 895
896 __proto__: WebInspector.ProfileHeader.prototype 896 __proto__: WebInspector.ProfileHeader.prototype
897 } 897 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698