| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Tracing: "Tracing" | 149 Tracing: "Tracing" |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 // Define row and header height, should be in sync with styles for timeline grap
hs. | 152 // Define row and header height, should be in sync with styles for timeline grap
hs. |
| 153 WebInspector.TimelinePanel.rowHeight = 18; | 153 WebInspector.TimelinePanel.rowHeight = 18; |
| 154 WebInspector.TimelinePanel.headerHeight = 20; | 154 WebInspector.TimelinePanel.headerHeight = 20; |
| 155 | 155 |
| 156 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15]; | 156 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15]; |
| 157 | 157 |
| 158 WebInspector.TimelinePanel.prototype = { | 158 WebInspector.TimelinePanel.prototype = { |
| 159 /** |
| 160 * @return {?WebInspector.SearchableView} |
| 161 */ |
| 162 searchableView: function() |
| 163 { |
| 164 return this._searchableView; |
| 165 }, |
| 166 |
| 159 wasShown: function() | 167 wasShown: function() |
| 160 { | 168 { |
| 161 if (!WebInspector.TimelinePanel._categoryStylesInitialized) { | 169 if (!WebInspector.TimelinePanel._categoryStylesInitialized) { |
| 162 WebInspector.TimelinePanel._categoryStylesInitialized = true; | 170 WebInspector.TimelinePanel._categoryStylesInitialized = true; |
| 163 var style = document.createElement("style"); | 171 var style = document.createElement("style"); |
| 164 var categories = WebInspector.TimelineUIUtils.categories(); | 172 var categories = WebInspector.TimelineUIUtils.categories(); |
| 165 style.textContent = Object.values(categories).map(WebInspector.Timel
ineUIUtils.createStyleRuleForCategory).join("\n"); | 173 style.textContent = Object.values(categories).map(WebInspector.Timel
ineUIUtils.createStyleRuleForCategory).join("\n"); |
| 166 document.head.appendChild(style); | 174 document.head.appendChild(style); |
| 167 } | 175 } |
| 168 }, | 176 }, |
| (...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 * @param {!WebInspector.TimelineModel.Record} record | 1239 * @param {!WebInspector.TimelineModel.Record} record |
| 1232 * @return {boolean} | 1240 * @return {boolean} |
| 1233 */ | 1241 */ |
| 1234 accept: function(record) | 1242 accept: function(record) |
| 1235 { | 1243 { |
| 1236 return !this._hiddenRecords[record.type]; | 1244 return !this._hiddenRecords[record.type]; |
| 1237 }, | 1245 }, |
| 1238 | 1246 |
| 1239 __proto__: WebInspector.TimelineModel.Filter.prototype | 1247 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1240 } | 1248 } |
| OLD | NEW |