| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 this._createStatusBarItems(); | 113 this._createStatusBarItems(); |
| 114 | 114 |
| 115 this._topPane = new WebInspector.SplitView(true, false); | 115 this._topPane = new WebInspector.SplitView(true, false); |
| 116 this._topPane.element.id = "timeline-overview-panel"; | 116 this._topPane.element.id = "timeline-overview-panel"; |
| 117 this._topPane.show(this.element); | 117 this._topPane.show(this.element); |
| 118 this._topPane.addEventListener(WebInspector.SplitView.Events.SidebarSizeChan
ged, this._sidebarResized, this); | 118 this._topPane.addEventListener(WebInspector.SplitView.Events.SidebarSizeChan
ged, this._sidebarResized, this); |
| 119 this._topPane.setResizable(false); | 119 this._topPane.setResizable(false); |
| 120 this._createRecordingOptions(); | 120 this._createRecordingOptions(); |
| 121 | 121 |
| 122 // Create top overview component. | 122 // Create top overview component. |
| 123 this._overviewPane = new WebInspector.TimelineOverviewPane(this._model); | 123 this._overviewPane = new WebInspector.TimelineOverviewPane(this._model, this
._uiUtils); |
| 124 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events
.WindowChanged, this._onWindowChanged.bind(this)); | 124 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events
.WindowChanged, this._onWindowChanged.bind(this)); |
| 125 this._overviewPane.show(this._topPane.mainElement()); | 125 this._overviewPane.show(this._topPane.mainElement()); |
| 126 | 126 |
| 127 this._createFileSelector(); | 127 this._createFileSelector(); |
| 128 this._registerShortcuts(); | 128 this._registerShortcuts(); |
| 129 | 129 |
| 130 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.WillReloadPage, this._willReloadPage, this); | 130 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.WillReloadPage, this._willReloadPage, this); |
| 131 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.Load, this._loadEventFired, this); | 131 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.Load, this._loadEventFired, this); |
| 132 | 132 |
| 133 // Create top level properties splitter. | 133 // Create top level properties splitter. |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 * @param {!WebInspector.TimelineModel.Record} record | 1441 * @param {!WebInspector.TimelineModel.Record} record |
| 1442 * @return {boolean} | 1442 * @return {boolean} |
| 1443 */ | 1443 */ |
| 1444 accept: function(record) | 1444 accept: function(record) |
| 1445 { | 1445 { |
| 1446 return !this._hiddenRecords[record.type()]; | 1446 return !this._hiddenRecords[record.type()]; |
| 1447 }, | 1447 }, |
| 1448 | 1448 |
| 1449 __proto__: WebInspector.TimelineModel.Filter.prototype | 1449 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1450 } | 1450 } |
| OLD | NEW |