| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 _onFrameClicked: function(event) | 199 _onFrameClicked: function(event) |
| 200 { | 200 { |
| 201 var frameBar = event.target.enclosingNodeOrSelfWithClass("timeline-frame
-strip"); | 201 var frameBar = event.target.enclosingNodeOrSelfWithClass("timeline-frame
-strip"); |
| 202 if (!frameBar) | 202 if (!frameBar) |
| 203 return; | 203 return; |
| 204 this._delegate.select(WebInspector.TimelineSelection.fromFrame(frameBar.
_frame)); | 204 this._delegate.select(WebInspector.TimelineSelection.fromFrame(frameBar.
_frame)); |
| 205 }, | 205 }, |
| 206 | 206 |
| 207 /** | 207 /** |
| 208 * @param {!WebInspector.TimelineModel.Record} record | |
| 209 */ | |
| 210 addRecord: function(record) | |
| 211 { | |
| 212 this._presentationModel.addRecord(record); | |
| 213 this._invalidateAndScheduleRefresh(false, false); | |
| 214 }, | |
| 215 | |
| 216 /** | |
| 217 * @param {number} width | 208 * @param {number} width |
| 218 */ | 209 */ |
| 219 setSidebarSize: function(width) | 210 setSidebarSize: function(width) |
| 220 { | 211 { |
| 221 this._recordsView.setSidebarSize(width); | 212 this._recordsView.setSidebarSize(width); |
| 222 }, | 213 }, |
| 223 | 214 |
| 224 /** | 215 /** |
| 225 * @param {!WebInspector.Event} event | 216 * @param {!WebInspector.Event} event |
| 226 */ | 217 */ |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 } else { | 1292 } else { |
| 1302 this._element.classList.add("hidden"); | 1293 this._element.classList.add("hidden"); |
| 1303 } | 1294 } |
| 1304 }, | 1295 }, |
| 1305 | 1296 |
| 1306 _dispose: function() | 1297 _dispose: function() |
| 1307 { | 1298 { |
| 1308 this._element.remove(); | 1299 this._element.remove(); |
| 1309 } | 1300 } |
| 1310 } | 1301 } |
| OLD | NEW |