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

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

Issue 11434068: Enable Chrome OS WiMAX debugging in chrome://net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/resources/net_internals/chromeos_view.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * This view displays information on ChromeOS specific features. 6 * This view displays information on ChromeOS specific features.
7 */ 7 */
8 var CrosView = (function() { 8 var CrosView = (function() {
9 'use strict'; 9 'use strict';
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 $(CrosView.DEBUG_WIFI_ID).addEventListener('click', function(event) { 166 $(CrosView.DEBUG_WIFI_ID).addEventListener('click', function(event) {
167 setNetworkDebugMode_('wifi'); 167 setNetworkDebugMode_('wifi');
168 }, false); 168 }, false);
169 $(CrosView.DEBUG_ETHERNET_ID).addEventListener('click', function(event) { 169 $(CrosView.DEBUG_ETHERNET_ID).addEventListener('click', function(event) {
170 setNetworkDebugMode_('ethernet'); 170 setNetworkDebugMode_('ethernet');
171 }, false); 171 }, false);
172 $(CrosView.DEBUG_CELLULAR_ID).addEventListener('click', function(event) { 172 $(CrosView.DEBUG_CELLULAR_ID).addEventListener('click', function(event) {
173 setNetworkDebugMode_('cellular'); 173 setNetworkDebugMode_('cellular');
174 }, false); 174 }, false);
175 $(CrosView.DEBUG_WIMAX_ID).addEventListener('click', function(event) {
176 setNetworkDebugMode_('wimax');
177 }, false);
175 $(CrosView.DEBUG_NONE_ID).addEventListener('click', function(event) { 178 $(CrosView.DEBUG_NONE_ID).addEventListener('click', function(event) {
176 setNetworkDebugMode_('none'); 179 setNetworkDebugMode_('none');
177 }, false); 180 }, false);
178 } 181 }
179 182
180 /** 183 /**
181 * Reset fileContent and passcode vars. 184 * Reset fileContent and passcode vars.
182 * 185 *
183 * @private 186 * @private
184 */ 187 */
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 CrosView.IMPORT_DIV_ID = 'chromeos-view-import-div'; 224 CrosView.IMPORT_DIV_ID = 'chromeos-view-import-div';
222 CrosView.IMPORT_ONC_ID = 'chromeos-view-import-onc'; 225 CrosView.IMPORT_ONC_ID = 'chromeos-view-import-onc';
223 CrosView.PASSCODE_ID = 'chromeos-view-password-div'; 226 CrosView.PASSCODE_ID = 'chromeos-view-password-div';
224 CrosView.PASSCODE_INPUT_ID = 'chromeos-view-onc-password'; 227 CrosView.PASSCODE_INPUT_ID = 'chromeos-view-onc-password';
225 CrosView.PARSE_STATUS_ID = 'chromeos-view-parse-status'; 228 CrosView.PARSE_STATUS_ID = 'chromeos-view-parse-status';
226 CrosView.STORE_DEBUG_LOGS_ID = 'chromeos-view-store-debug-logs'; 229 CrosView.STORE_DEBUG_LOGS_ID = 'chromeos-view-store-debug-logs';
227 CrosView.STORE_DEBUG_LOGS_STATUS_ID = 'chromeos-view-store-debug-logs-status'; 230 CrosView.STORE_DEBUG_LOGS_STATUS_ID = 'chromeos-view-store-debug-logs-status';
228 CrosView.DEBUG_WIFI_ID = 'chromeos-view-network-debugging-wifi'; 231 CrosView.DEBUG_WIFI_ID = 'chromeos-view-network-debugging-wifi';
229 CrosView.DEBUG_ETHERNET_ID = 'chromeos-view-network-debugging-ethernet'; 232 CrosView.DEBUG_ETHERNET_ID = 'chromeos-view-network-debugging-ethernet';
230 CrosView.DEBUG_CELLULAR_ID = 'chromeos-view-network-debugging-cellular'; 233 CrosView.DEBUG_CELLULAR_ID = 'chromeos-view-network-debugging-cellular';
234 CrosView.DEBUG_WIMAX_ID = 'chromeos-view-network-debugging-wimax';
231 CrosView.DEBUG_NONE_ID = 'chromeos-view-network-debugging-none'; 235 CrosView.DEBUG_NONE_ID = 'chromeos-view-network-debugging-none';
232 CrosView.DEBUG_STATUS_ID = 'chromeos-view-network-debugging-status'; 236 CrosView.DEBUG_STATUS_ID = 'chromeos-view-network-debugging-status';
233 237
234 cr.addSingletonGetter(CrosView); 238 cr.addSingletonGetter(CrosView);
235 239
236 CrosView.prototype = { 240 CrosView.prototype = {
237 // Inherit from DivView. 241 // Inherit from DivView.
238 __proto__: DivView.prototype, 242 __proto__: DivView.prototype,
239 243
240 onONCFileParse: setParseStatus_, 244 onONCFileParse: setParseStatus_,
241 onStoreDebugLogs: setStoreDebugLogsStatus_, 245 onStoreDebugLogs: setStoreDebugLogsStatus_,
242 onSetNetworkDebugMode: setNetworkDebugModeStatus_, 246 onSetNetworkDebugMode: setNetworkDebugModeStatus_,
243 }; 247 };
244 248
245 return CrosView; 249 return CrosView;
246 })(); 250 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/chromeos_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698