OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |