OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * EventsView displays a filtered list of all events sharing a source, and | 6 * EventsView displays a filtered list of all events sharing a source, and |
7 * a details pane for the selected sources. | 7 * a details pane for the selected sources. |
8 * | 8 * |
9 * +----------------------++----------------+ | 9 * +----------------------++----------------+ |
10 * | filter box || | | 10 * | filter box || | |
11 * +----------------------+| | | 11 * +----------------------+| | |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 EventsView.prototype.setFilterText_ = function(filterText) { | 120 EventsView.prototype.setFilterText_ = function(filterText) { |
121 this.filterInput_.value = filterText; | 121 this.filterInput_.value = filterText; |
122 this.onFilterTextChanged_(); | 122 this.onFilterTextChanged_(); |
123 }; | 123 }; |
124 | 124 |
125 EventsView.prototype.onFilterTextChanged_ = function() { | 125 EventsView.prototype.onFilterTextChanged_ = function() { |
126 this.setFilter_(this.getFilterText_()); | 126 this.setFilter_(this.getFilterText_()); |
127 }; | 127 }; |
128 | 128 |
129 /** | 129 /** |
| 130 * Updates text in the details view when security stripping is toggled. |
| 131 */ |
| 132 EventsView.prototype.onSecurityStrippingChanged = function() { |
| 133 this.invalidateDetailsView_(); |
| 134 } |
| 135 |
| 136 /** |
130 * Sorts active entries first. If both entries are inactive, puts the one | 137 * Sorts active entries first. If both entries are inactive, puts the one |
131 * that was active most recently first. If both are active, uses source ID, | 138 * that was active most recently first. If both are active, uses source ID, |
132 * which puts longer lived events at the top, and behaves better than using | 139 * which puts longer lived events at the top, and behaves better than using |
133 * duration or time of first event. | 140 * duration or time of first event. |
134 */ | 141 */ |
135 EventsView.compareActive_ = function(source1, source2) { | 142 EventsView.compareActive_ = function(source1, source2) { |
136 if (source1.isActive() && !source2.isActive()) | 143 if (source1.isActive() && !source2.isActive()) |
137 return -1; | 144 return -1; |
138 if (!source1.isActive() && source2.isActive()) | 145 if (!source1.isActive() && source2.isActive()) |
139 return 1; | 146 return 1; |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 EventsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); | 621 EventsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); |
615 } | 622 } |
616 }; | 623 }; |
617 | 624 |
618 EventsView.prototype.repaintFilterCounter_ = function() { | 625 EventsView.prototype.repaintFilterCounter_ = function() { |
619 this.outstandingRepaintFilterCounter_ = false; | 626 this.outstandingRepaintFilterCounter_ = false; |
620 this.filterCount_.innerHTML = ''; | 627 this.filterCount_.innerHTML = ''; |
621 addTextNode(this.filterCount_, | 628 addTextNode(this.filterCount_, |
622 this.numPostfilter_ + ' of ' + this.numPrefilter_); | 629 this.numPostfilter_ + ' of ' + this.numPrefilter_); |
623 }; | 630 }; |
OLD | NEW |