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 * RequestsView displays a filtered list of all the requests, and a details | 6 * RequestsView displays a filtered list of all the requests, and a details |
7 * pane for the selected requests. | 7 * pane for the selected requests. |
8 * | 8 * |
9 * +----------------------++----------------+ | 9 * +----------------------++----------------+ |
10 * | filter box || | | 10 * | filter box || | |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 timelineTabId, | 42 timelineTabId, |
43 detailsLogBoxId, | 43 detailsLogBoxId, |
44 detailsTimelineBoxId); | 44 detailsTimelineBoxId); |
45 | 45 |
46 this.splitterView_ = new ResizableVerticalSplitView( | 46 this.splitterView_ = new ResizableVerticalSplitView( |
47 leftPane, this.detailsView_, new DivView(sizerId)); | 47 leftPane, this.detailsView_, new DivView(sizerId)); |
48 | 48 |
49 this.sourceIdToEntryMap_ = {}; | 49 this.sourceIdToEntryMap_ = {}; |
50 this.currentSelectedSources_ = []; | 50 this.currentSelectedSources_ = []; |
51 | 51 |
52 LogDataProvider.addObserver(this); | 52 g_browser.addLogObserver(this); |
53 | 53 |
54 this.tableBody_ = document.getElementById(tableBodyId); | 54 this.tableBody_ = document.getElementById(tableBodyId); |
55 | 55 |
56 this.filterInput_ = document.getElementById(filterInputId); | 56 this.filterInput_ = document.getElementById(filterInputId); |
57 this.filterCount_ = document.getElementById(filterCountId); | 57 this.filterCount_ = document.getElementById(filterCountId); |
58 | 58 |
59 this.filterInput_.addEventListener("search", | 59 this.filterInput_.addEventListener("search", |
60 this.onFilterTextChanged_.bind(this), true); | 60 this.onFilterTextChanged_.bind(this), true); |
61 | 61 |
62 document.getElementById(deleteSelectedId).onclick = | 62 document.getElementById(deleteSelectedId).onclick = |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 RequestsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); | 198 RequestsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); |
199 } | 199 } |
200 }; | 200 }; |
201 | 201 |
202 RequestsView.prototype.repaintFilterCounter_ = function() { | 202 RequestsView.prototype.repaintFilterCounter_ = function() { |
203 this.outstandingRepaintFilterCounter_ = false; | 203 this.outstandingRepaintFilterCounter_ = false; |
204 this.filterCount_.innerHTML = ''; | 204 this.filterCount_.innerHTML = ''; |
205 addTextNode(this.filterCount_, | 205 addTextNode(this.filterCount_, |
206 this.numPostfilter_ + " of " + this.numPrefilter_); | 206 this.numPostfilter_ + " of " + this.numPrefilter_); |
207 }; | 207 }; |
OLD | NEW |