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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 this._createFileSelector(); | 96 this._createFileSelector(); |
97 this._registerShortcuts(); | 97 this._registerShortcuts(); |
98 | 98 |
99 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.WillReloadPage, this._willReloadPage, this); | 99 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.WillReloadPage, this._willReloadPage, this); |
100 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.Load, this._loadEventFired, this); | 100 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.Load, this._loadEventFired, this); |
101 | 101 |
102 // Create top level properties splitter. | 102 // Create top level properties splitter. |
103 this._detailsSplitView = new WebInspector.SplitView(false, true, "timelinePa
nelDetailsSplitViewState"); | 103 this._detailsSplitView = new WebInspector.SplitView(false, true, "timelinePa
nelDetailsSplitViewState"); |
104 this._detailsSplitView.element.classList.add("timeline-details-split"); | 104 this._detailsSplitView.element.classList.add("timeline-details-split"); |
105 this._detailsSplitView.sidebarElement().classList.add("timeline-details"); | 105 this._detailsSplitView.sidebarElement().classList.add("timeline-details"); |
106 this._detailsSplitView.setMainElementConstraints(undefined, 40); | |
107 this._detailsView = new WebInspector.TimelineDetailsView(); | 106 this._detailsView = new WebInspector.TimelineDetailsView(); |
108 this._detailsSplitView.installResizer(this._detailsView.titleElement()); | 107 this._detailsSplitView.installResizer(this._detailsView.titleElement()); |
109 this._detailsView.show(this._detailsSplitView.sidebarElement()); | 108 this._detailsView.show(this._detailsSplitView.sidebarElement()); |
110 | 109 |
111 this._searchableView = new WebInspector.SearchableView(this); | 110 this._searchableView = new WebInspector.SearchableView(this); |
| 111 this._searchableView.setMinimumSize(0, 25); |
112 this._searchableView.element.classList.add("searchable-view"); | 112 this._searchableView.element.classList.add("searchable-view"); |
113 this._searchableView.show(this._detailsSplitView.mainElement()); | 113 this._searchableView.show(this._detailsSplitView.mainElement()); |
114 | 114 |
115 this._stackView = new WebInspector.StackView(false); | 115 this._stackView = new WebInspector.StackView(false); |
116 this._stackView.show(this._searchableView.element); | 116 this._stackView.show(this._searchableView.element); |
117 this._stackView.element.classList.add("timeline-view-stack"); | 117 this._stackView.element.classList.add("timeline-view-stack"); |
118 | 118 |
119 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); | 119 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); |
120 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); | 120 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); |
121 this._dockSideChanged(); | 121 this._dockSideChanged(); |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 * @param {!WebInspector.TimelineModel.Record} record | 1110 * @param {!WebInspector.TimelineModel.Record} record |
1111 * @return {boolean} | 1111 * @return {boolean} |
1112 */ | 1112 */ |
1113 accept: function(record) | 1113 accept: function(record) |
1114 { | 1114 { |
1115 return !this._hiddenRecords[record.type]; | 1115 return !this._hiddenRecords[record.type]; |
1116 }, | 1116 }, |
1117 | 1117 |
1118 __proto__: WebInspector.TimelineModel.Filter.prototype | 1118 __proto__: WebInspector.TimelineModel.Filter.prototype |
1119 } | 1119 } |
OLD | NEW |