OLD | NEW |
1 // Copyright (c) 2011 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 * +----------------------+| | |
12 * | || | | 12 * | || | |
13 * | || | | 13 * | || | |
14 * | || | | 14 * | || | |
15 * | || | | 15 * | || | |
16 * | source list || details | | 16 * | source list || details | |
17 * | || view | | 17 * | || view | |
18 * | || | | 18 * | || | |
19 * | || | | 19 * | || | |
20 * | || | | 20 * | || | |
21 * | || | | 21 * | || | |
22 * +----------------------++ | | 22 * +----------------------++ | |
23 * | action bar || | | 23 * | action bar || | |
24 * +----------------------++----------------+ | 24 * +----------------------++----------------+ |
25 * | 25 * |
26 * @constructor | 26 * @constructor |
27 */ | 27 */ |
28 function EventsView() { | 28 function EventsView() { |
29 const tableBodyId = 'eventsListTableBody'; | 29 const tableBodyId = 'events-view-source-list-tbody'; |
30 const filterInputId = 'filterInput'; | 30 const filterInputId = 'filterInput'; |
31 const filterCountId = 'filterCount'; | 31 const filterCountId = 'filterCount'; |
32 const deleteSelectedId = 'deleteSelected'; | 32 const deleteSelectedId = 'deleteSelected'; |
33 const deleteAllId = 'deleteAll'; | 33 const deleteAllId = 'deleteAll'; |
34 const selectAllId = 'selectAll'; | 34 const selectAllId = 'selectAll'; |
35 const sortByIdId = 'sortById'; | 35 const sortByIdId = 'sortById'; |
36 const sortBySourceTypeId = 'sortBySource'; | 36 const sortBySourceTypeId = 'sortBySource'; |
37 const sortByDescriptionId = 'sortByDescription'; | 37 const sortByDescriptionId = 'sortByDescription'; |
38 const tabHandlesContainerId = 'detailsTabHandles'; | 38 const tabHandlesContainerId = 'events-view-details-tab-handles'; |
39 const logTabId = 'detailsLogTab'; | 39 const logTabId = 'detailsLogTab'; |
40 const timelineTabId = 'detailsTimelineTab'; | 40 const timelineTabId = 'detailsTimelineTab'; |
41 const detailsLogBoxId = 'detailsLogBox'; | 41 const detailsLogBoxId = 'detailsLogBox'; |
42 const detailsTimelineBoxId = 'detailsTimelineBox'; | 42 const detailsTimelineBoxId = 'detailsTimelineBox'; |
43 const topbarId = 'filterBox'; | 43 const topbarId = 'events-view-filter-box'; |
44 const middleboxId = 'eventsBox'; | 44 const middleboxId = 'events-view-source-list'; |
45 const bottombarId = 'actionBox'; | 45 const bottombarId = 'events-view-action-box'; |
46 const sizerId = 'splitterBoxForEventDetails'; | 46 const sizerId = 'splitterBoxForEventDetails'; |
47 | 47 |
48 View.call(this); | 48 View.call(this); |
49 | 49 |
50 // Initialize the sub-views. | 50 // Initialize the sub-views. |
51 var leftPane = new TopMidBottomView(new DivView(topbarId), | 51 var leftPane = new TopMidBottomView(new DivView(topbarId), |
52 new DivView(middleboxId), | 52 new DivView(middleboxId), |
53 new DivView(bottombarId)); | 53 new DivView(bottombarId)); |
54 | 54 |
55 this.detailsView_ = new DetailsView(tabHandlesContainerId, | 55 this.detailsView_ = new DetailsView(tabHandlesContainerId, |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 EventsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); | 651 EventsView.REPAINT_FILTER_COUNTER_TIMEOUT_MS); |
652 } | 652 } |
653 }; | 653 }; |
654 | 654 |
655 EventsView.prototype.repaintFilterCounter_ = function() { | 655 EventsView.prototype.repaintFilterCounter_ = function() { |
656 this.outstandingRepaintFilterCounter_ = false; | 656 this.outstandingRepaintFilterCounter_ = false; |
657 this.filterCount_.innerHTML = ''; | 657 this.filterCount_.innerHTML = ''; |
658 addTextNode(this.filterCount_, | 658 addTextNode(this.filterCount_, |
659 this.numPostfilter_ + ' of ' + this.numPrefilter_); | 659 this.numPostfilter_ + ' of ' + this.numPrefilter_); |
660 }; | 660 }; |
OLD | NEW |