| 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 * Dictionary of constants (Initialized soon after loading by data from browser, | 6 * Dictionary of constants (Initialized soon after loading by data from browser, |
| 7 * updated on load log). | 7 * updated on load log). |
| 8 */ | 8 */ |
| 9 var LogEventType = null; | 9 var LogEventType = null; |
| 10 var LogEventPhase = null; | 10 var LogEventPhase = null; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 tabs.addTab(HttpThrottlingView.TAB_HANDLE_ID, | 95 tabs.addTab(HttpThrottlingView.TAB_HANDLE_ID, |
| 96 HttpThrottlingView.getInstance(), false, true); | 96 HttpThrottlingView.getInstance(), false, true); |
| 97 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, | 97 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, |
| 98 ServiceProvidersView.getInstance(), false, cr.isWindows); | 98 ServiceProvidersView.getInstance(), false, cr.isWindows); |
| 99 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); | 99 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); |
| 100 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); | 100 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); |
| 101 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), | 101 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), |
| 102 false, cr.isChromeOS); | 102 false, cr.isChromeOS); |
| 103 tabs.addTab(PrerenderView.TAB_HANDLE_ID, PrerenderView.getInstance(), | 103 tabs.addTab(PrerenderView.TAB_HANDLE_ID, PrerenderView.getInstance(), |
| 104 false, true); | 104 false, true); |
| 105 tabs.addTab(CrosView.TAB_HANDLE_ID, CrosView.getInstance(), |
| 106 false, cr.isChromeOS); |
| 105 | 107 |
| 106 // Build a map from the anchor name of each tab handle to its "tab ID". | 108 // Build a map from the anchor name of each tab handle to its "tab ID". |
| 107 // We will consider navigations to the #hash as a switch tab request. | 109 // We will consider navigations to the #hash as a switch tab request. |
| 108 var anchorMap = {}; | 110 var anchorMap = {}; |
| 109 var tabIds = tabs.getAllTabIds(); | 111 var tabIds = tabs.getAllTabIds(); |
| 110 for (var i = 0; i < tabIds.length; ++i) { | 112 for (var i = 0; i < tabIds.length; ++i) { |
| 111 var aNode = $(tabIds[i]); | 113 var aNode = $(tabIds[i]); |
| 112 anchorMap[aNode.hash] = tabIds[i]; | 114 anchorMap[aNode.hash] = tabIds[i]; |
| 113 } | 115 } |
| 114 // Default the empty hash to the data tab. | 116 // Default the empty hash to the data tab. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 typeof(receivedConstants.clientInfo) == 'object' && | 259 typeof(receivedConstants.clientInfo) == 'object' && |
| 258 typeof(receivedConstants.logEventPhase) == 'object' && | 260 typeof(receivedConstants.logEventPhase) == 'object' && |
| 259 typeof(receivedConstants.logSourceType) == 'object' && | 261 typeof(receivedConstants.logSourceType) == 'object' && |
| 260 typeof(receivedConstants.logLevelType) == 'object' && | 262 typeof(receivedConstants.logLevelType) == 'object' && |
| 261 typeof(receivedConstants.loadFlag) == 'object' && | 263 typeof(receivedConstants.loadFlag) == 'object' && |
| 262 typeof(receivedConstants.netError) == 'object' && | 264 typeof(receivedConstants.netError) == 'object' && |
| 263 typeof(receivedConstants.addressFamily) == 'object' && | 265 typeof(receivedConstants.addressFamily) == 'object' && |
| 264 typeof(receivedConstants.timeTickOffset) == 'string' && | 266 typeof(receivedConstants.timeTickOffset) == 'string' && |
| 265 typeof(receivedConstants.logFormatVersion) == 'number'; | 267 typeof(receivedConstants.logFormatVersion) == 'number'; |
| 266 } | 268 } |
| OLD | NEW |