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

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

Issue 672553002: DevTools: [FlameChart] focus flamechart when it gets shown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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) 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 this._changeView(); 81 this._changeView();
82 if (this._flameChart) 82 if (this._flameChart)
83 this._flameChart.update(); 83 this._flameChart.update();
84 } 84 }
85 85
86 WebInspector.CPUProfileView._TypeFlame = "Flame"; 86 WebInspector.CPUProfileView._TypeFlame = "Flame";
87 WebInspector.CPUProfileView._TypeTree = "Tree"; 87 WebInspector.CPUProfileView._TypeTree = "Tree";
88 WebInspector.CPUProfileView._TypeHeavy = "Heavy"; 88 WebInspector.CPUProfileView._TypeHeavy = "Heavy";
89 89
90 WebInspector.CPUProfileView.prototype = { 90 WebInspector.CPUProfileView.prototype = {
91 focus: function()
92 {
93 if (this._flameChart)
94 this._flameChart.focus();
95 else
96 WebInspector.View.prototype.focus.call(this);
97 },
98
91 /** 99 /**
92 * @return {?WebInspector.Target} 100 * @return {?WebInspector.Target}
93 */ 101 */
94 target: function() 102 target: function()
95 { 103 {
96 return this._profileHeader.target(); 104 return this._profileHeader.target();
97 }, 105 },
98 106
99 /** 107 /**
100 * @param {!number} timeLeft 108 * @param {!number} timeLeft
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 _notifyTempFileReady: function() 896 _notifyTempFileReady: function()
889 { 897 {
890 if (this._onTempFileReady) { 898 if (this._onTempFileReady) {
891 this._onTempFileReady(); 899 this._onTempFileReady();
892 this._onTempFileReady = null; 900 this._onTempFileReady = null;
893 } 901 }
894 }, 902 },
895 903
896 __proto__: WebInspector.ProfileHeader.prototype 904 __proto__: WebInspector.ProfileHeader.prototype
897 } 905 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/CPUProfileFlameChart.js ('k') | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698