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

Side by Side Diff: chrome/browser/resources/net_internals/detailsview.js

Issue 1525016: Make it possible to switch between views of the new net-internals page by usi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix long lines Created 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, new DivView(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_); 22 this.addTab(logTabId, this.logView_, true);
23 this.addTab(timelineTabId, this.timelineView_); 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); 26 this.switchToTab(logTabId);
27 }; 27 };
28 28
29 inherits(DetailsView, TabSwitcherView); 29 inherits(DetailsView, TabSwitcherView);
30 30
31 // The delay between updates to repaint. 31 // The delay between updates to repaint.
32 DetailsView.REPAINT_TIMEOUT_MS = 50; 32 DetailsView.REPAINT_TIMEOUT_MS = 50;
33 33
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698