Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: Source/devtools/front_end/TimelinePanel.js

Issue 214663005: [DevTools] Add preferred size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Constraints Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Create top level properties splitter. 104 // Create top level properties splitter.
105 this._detailsSplitView = new WebInspector.SplitView(false, true, "timelinePa nelDetailsSplitViewState"); 105 this._detailsSplitView = new WebInspector.SplitView(false, true, "timelinePa nelDetailsSplitViewState");
106 this._detailsSplitView.element.classList.add("timeline-details-split"); 106 this._detailsSplitView.element.classList.add("timeline-details-split");
107 this._detailsSplitView.sidebarElement().classList.add("timeline-details"); 107 this._detailsSplitView.sidebarElement().classList.add("timeline-details");
108 this._detailsView = new WebInspector.TimelineDetailsView(); 108 this._detailsView = new WebInspector.TimelineDetailsView();
109 this._detailsSplitView.installResizer(this._detailsView.titleElement()); 109 this._detailsSplitView.installResizer(this._detailsView.titleElement());
110 this._detailsView.show(this._detailsSplitView.sidebarElement()); 110 this._detailsView.show(this._detailsSplitView.sidebarElement());
111 111
112 this._searchableView = new WebInspector.SearchableView(this); 112 this._searchableView = new WebInspector.SearchableView(this);
113 this._searchableView.setMinimumSize(0, 25); 113 this._searchableView.setConstraints(0, 25);
114 this._searchableView.element.classList.add("searchable-view"); 114 this._searchableView.element.classList.add("searchable-view");
115 this._searchableView.show(this._detailsSplitView.mainElement()); 115 this._searchableView.show(this._detailsSplitView.mainElement());
116 116
117 this._stackView = new WebInspector.StackView(false); 117 this._stackView = new WebInspector.StackView(false);
118 this._stackView.show(this._searchableView.element); 118 this._stackView.show(this._searchableView.element);
119 this._stackView.element.classList.add("timeline-view-stack"); 119 this._stackView.element.classList.add("timeline-view-stack");
120 120
121 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve nts.DockSideChanged, this._dockSideChanged.bind(this)); 121 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve nts.DockSideChanged, this._dockSideChanged.bind(this));
122 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi s._dockSideChanged.bind(this)); 122 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi s._dockSideChanged.bind(this));
123 this._dockSideChanged(); 123 this._dockSideChanged();
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 * @param {!WebInspector.TimelineModel.Record} record 1147 * @param {!WebInspector.TimelineModel.Record} record
1148 * @return {boolean} 1148 * @return {boolean}
1149 */ 1149 */
1150 accept: function(record) 1150 accept: function(record)
1151 { 1151 {
1152 return !this._hiddenRecords[record.type]; 1152 return !this._hiddenRecords[record.type];
1153 }, 1153 },
1154 1154
1155 __proto__: WebInspector.TimelineModel.Filter.prototype 1155 __proto__: WebInspector.TimelineModel.Filter.prototype
1156 } 1156 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698