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

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

Issue 5228004: Switch the about:gpu implementation from an about handler to dom_ui.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 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 * Dictionary of constants (initialized by browser). 6 * Dictionary of constants (initialized by browser).
7 */ 7 */
8 var LogEventType = null; 8 var LogEventType = null;
9 var LogEventPhase = null; 9 var LogEventPhase = null;
10 var ClientInfo = null; 10 var ClientInfo = null;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 var serviceView; 101 var serviceView;
102 if (g_browser.isPlatformWindows()) { 102 if (g_browser.isPlatformWindows()) {
103 serviceView = new ServiceProvidersView('serviceProvidersTab', 103 serviceView = new ServiceProvidersView('serviceProvidersTab',
104 'serviceProvidersTabContent', 104 'serviceProvidersTabContent',
105 'serviceProvidersTbody', 105 'serviceProvidersTbody',
106 'namespaceProvidersTbody'); 106 'namespaceProvidersTbody');
107 } 107 }
108 108
109 // Create a view which lets you tab between the different sub-views. 109 // Create a view which lets you tab between the different sub-views.
110 var categoryTabSwitcher = 110 var categoryTabSwitcher = new TabSwitcherView('categoryTabHandles');
111 new TabSwitcherView(new DivView('categoryTabHandles'));
112 111
113 // Populate the main tabs. 112 // Populate the main tabs.
114 categoryTabSwitcher.addTab('eventsTab', eventsView, false); 113 categoryTabSwitcher.addTab('eventsTab', eventsView, false);
115 categoryTabSwitcher.addTab('proxyTab', proxyView, false); 114 categoryTabSwitcher.addTab('proxyTab', proxyView, false);
116 categoryTabSwitcher.addTab('dnsTab', dnsView, false); 115 categoryTabSwitcher.addTab('dnsTab', dnsView, false);
117 categoryTabSwitcher.addTab('socketsTab', socketsView, false); 116 categoryTabSwitcher.addTab('socketsTab', socketsView, false);
118 categoryTabSwitcher.addTab('spdyTab', spdyView, false); 117 categoryTabSwitcher.addTab('spdyTab', spdyView, false);
119 categoryTabSwitcher.addTab('httpCacheTab', httpCacheView, false); 118 categoryTabSwitcher.addTab('httpCacheTab', httpCacheView, false);
120 categoryTabSwitcher.addTab('dataTab', dataView, false); 119 categoryTabSwitcher.addTab('dataTab', dataView, false);
121 if (g_browser.isPlatformWindows()) 120 if (g_browser.isPlatformWindows())
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 return true; 754 return true;
756 }; 755 };
757 756
758 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { 757 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) {
759 helper.removeObserver(this); 758 helper.removeObserver(this);
760 --this.observingCount_; 759 --this.observingCount_;
761 this.updatedData_[name] = data; 760 this.updatedData_[name] = data;
762 if (this.observingCount_ == 0) 761 if (this.observingCount_ == 0)
763 this.callback_(this.updatedData_); 762 this.callback_(this.updatedData_);
764 }; 763 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/main.css ('k') | chrome/browser/resources/net_internals/tabswitcherview.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698