| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * The DetailsView handles the tabbed view that displays either the "log" or | 6 * The DetailsView handles the tabbed view that displays either the "log" or |
| 7 * "timeline" view. This class keeps track of what the current view is, and | 7 * "timeline" view. This class keeps track of what the current view is, and |
| 8 * invalidates the specific view each time the selected data has changed. | 8 * invalidates the specific view each time the selected data has changed. |
| 9 * | 9 * |
| 10 * @constructor | 10 * @constructor |
| 11 */ | 11 */ |
| 12 function DetailsView(tabHandlesContainerId, | 12 function DetailsView(tabHandlesContainerId, |
| 13 logTabId, | 13 logTabId, |
| 14 timelineTabId, | 14 timelineTabId, |
| 15 logBoxId, | 15 logBoxId, |
| 16 timelineBoxId) { | 16 timelineBoxId) { |
| 17 TabSwitcherView.call(this, new DivView(tabHandlesContainerId)); | 17 TabSwitcherView.call(this, tabHandlesContainerId); |
| 18 | 18 |
| 19 this.logView_ = new DetailsLogView(logBoxId); | 19 this.logView_ = new DetailsLogView(logBoxId); |
| 20 this.timelineView_ = new DetailsTimelineView(timelineBoxId); | 20 this.timelineView_ = new DetailsTimelineView(timelineBoxId); |
| 21 | 21 |
| 22 this.addTab(logTabId, this.logView_, true); | 22 this.addTab(logTabId, this.logView_, true); |
| 23 this.addTab(timelineTabId, this.timelineView_, true); | 23 this.addTab(timelineTabId, this.timelineView_, true); |
| 24 | 24 |
| 25 // Default to the log view. | 25 // Default to the log view. |
| 26 this.switchToTab(logTabId, null); | 26 this.switchToTab(logTabId, null); |
| 27 }; | 27 }; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 function DetailsTimelineView(boxId) { | 117 function DetailsTimelineView(boxId) { |
| 118 DetailsSubView.call(this, boxId); | 118 DetailsSubView.call(this, boxId); |
| 119 } | 119 } |
| 120 | 120 |
| 121 inherits(DetailsTimelineView, DetailsSubView); | 121 inherits(DetailsTimelineView, DetailsSubView); |
| 122 | 122 |
| 123 DetailsTimelineView.prototype.repaint = function() { | 123 DetailsTimelineView.prototype.repaint = function() { |
| 124 DetailsTimelineView.superClass_.repaint.call(this); | 124 DetailsTimelineView.superClass_.repaint.call(this); |
| 125 PaintTimelineView(this.sourceEntries_, this.getNode()); | 125 PaintTimelineView(this.sourceEntries_, this.getNode()); |
| 126 }; | 126 }; |
| OLD | NEW |