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

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

Issue 9581021: [refactor] Split up SourceTracker into SourceTracker + EventsTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 || |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Initialize the sub-views. 44 // Initialize the sub-views.
45 var leftPane = new VerticalSplitView(new DivView(EventsView.TOPBAR_ID), 45 var leftPane = new VerticalSplitView(new DivView(EventsView.TOPBAR_ID),
46 new DivView(EventsView.LIST_BOX_ID)); 46 new DivView(EventsView.LIST_BOX_ID));
47 47
48 this.detailsView_ = new DetailsView(EventsView.DETAILS_LOG_BOX_ID); 48 this.detailsView_ = new DetailsView(EventsView.DETAILS_LOG_BOX_ID);
49 49
50 this.splitterView_ = new ResizableVerticalSplitView( 50 this.splitterView_ = new ResizableVerticalSplitView(
51 leftPane, this.detailsView_, new DivView(EventsView.SIZER_ID)); 51 leftPane, this.detailsView_, new DivView(EventsView.SIZER_ID));
52 52
53 g_browser.sourceTracker.addSourceEntryObserver(this); 53 SourceTracker.getInstance().addSourceEntryObserver(this);
54 54
55 this.tableBody_ = $(EventsView.TBODY_ID); 55 this.tableBody_ = $(EventsView.TBODY_ID);
56 56
57 this.filterInput_ = $(EventsView.FILTER_INPUT_ID); 57 this.filterInput_ = $(EventsView.FILTER_INPUT_ID);
58 this.filterCount_ = $(EventsView.FILTER_COUNT_ID); 58 this.filterCount_ = $(EventsView.FILTER_COUNT_ID);
59 59
60 this.filterInput_.addEventListener('search', 60 this.filterInput_.addEventListener('search',
61 this.onFilterTextChanged_.bind(this), true); 61 this.onFilterTextChanged_.bind(this), true);
62 62
63 $(EventsView.SELECT_ALL_ID).addEventListener( 63 $(EventsView.SELECT_ALL_ID).addEventListener(
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 var source1Text = source1.getSourceTypeString(); 675 var source1Text = source1.getSourceTypeString();
676 var source2Text = source2.getSourceTypeString(); 676 var source2Text = source2.getSourceTypeString();
677 var compareResult = source1Text.localeCompare(source2Text); 677 var compareResult = source1Text.localeCompare(source2Text);
678 if (compareResult != 0) 678 if (compareResult != 0)
679 return compareResult; 679 return compareResult;
680 return compareSourceId(source1, source2); 680 return compareSourceId(source1, source2);
681 } 681 }
682 682
683 return EventsView; 683 return EventsView;
684 })(); 684 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698