| 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 * 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |