OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 30 matching lines...) Expand all Loading... |
41 this._windowStartTime = 0; | 41 this._windowStartTime = 0; |
42 this._windowEndTime = Infinity; | 42 this._windowEndTime = Infinity; |
43 this._eventDividers = []; | 43 this._eventDividers = []; |
44 | 44 |
45 this._model = model; | 45 this._model = model; |
46 | 46 |
47 this._topPaneSidebarElement = document.createElement("div"); | 47 this._topPaneSidebarElement = document.createElement("div"); |
48 this._topPaneSidebarElement.id = "timeline-overview-sidebar"; | 48 this._topPaneSidebarElement.id = "timeline-overview-sidebar"; |
49 | 49 |
50 var overviewTreeElement = document.createElement("ol"); | 50 var overviewTreeElement = document.createElement("ol"); |
51 overviewTreeElement.className = "sidebar-tree"; | 51 overviewTreeElement.className = "sidebar-tree vbox"; |
52 this._topPaneSidebarElement.appendChild(overviewTreeElement); | 52 this._topPaneSidebarElement.appendChild(overviewTreeElement); |
53 this.element.appendChild(this._topPaneSidebarElement); | 53 this.element.appendChild(this._topPaneSidebarElement); |
54 | 54 |
55 var topPaneSidebarTree = new TreeOutline(overviewTreeElement); | 55 var topPaneSidebarTree = new TreeOutline(overviewTreeElement); |
56 | 56 |
57 this._overviewItems = {}; | 57 this._overviewItems = {}; |
58 this._overviewItems[WebInspector.TimelineOverviewPane.Mode.Events] = new Web
Inspector.SidebarTreeElement("timeline-overview-sidebar-events", | 58 this._overviewItems[WebInspector.TimelineOverviewPane.Mode.Events] = new Web
Inspector.SidebarTreeElement("timeline-overview-sidebar-events", |
59 WebInspector.UIString("Events")); | 59 WebInspector.UIString("Events")); |
60 this._overviewItems[WebInspector.TimelineOverviewPane.Mode.Frames] = new Web
Inspector.SidebarTreeElement("timeline-overview-sidebar-frames", | 60 this._overviewItems[WebInspector.TimelineOverviewPane.Mode.Frames] = new Web
Inspector.SidebarTreeElement("timeline-overview-sidebar-frames", |
61 WebInspector.UIString("Frames")); | 61 WebInspector.UIString("Frames")); |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 WebInspector.TimelineWindowFilter.prototype = { | 951 WebInspector.TimelineWindowFilter.prototype = { |
952 /** | 952 /** |
953 * @param {!WebInspector.TimelinePresentationModel.Record} record | 953 * @param {!WebInspector.TimelinePresentationModel.Record} record |
954 * @return {boolean} | 954 * @return {boolean} |
955 */ | 955 */ |
956 accept: function(record) | 956 accept: function(record) |
957 { | 957 { |
958 return record.lastChildEndTime >= this._pane._windowStartTime && record.
startTime <= this._pane._windowEndTime; | 958 return record.lastChildEndTime >= this._pane._windowStartTime && record.
startTime <= this._pane._windowEndTime; |
959 } | 959 } |
960 } | 960 } |
OLD | NEW |