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

Side by Side Diff: chrome/browser/resources/chromeos/network_menu.js

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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) 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 // Network status constants. 6 // Network status constants.
7 const StatusConnected = 'connected'; 7 const StatusConnected = 'connected';
8 const StatusDisconnected = 'disconnected'; 8 const StatusDisconnected = 'disconnected';
9 const StatusConnecting = 'connecting'; 9 const StatusConnecting = 'connecting';
10 const StatusError = 'error'; 10 const StatusError = 'error';
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 this.addPasswordEdit_(); 293 this.addPasswordEdit_();
294 } 294 }
295 295
296 this.addAutoConnectCheckbox_(); 296 this.addAutoConnectCheckbox_();
297 } 297 }
298 //////// End NetworkMenuItem specifi code 298 //////// End NetworkMenuItem specifi code
299 299
300 if (attrs.font) { 300 if (attrs.font) {
301 this.label_.style.font = attrs.font; 301 this.label_.style.font = attrs.font;
302 302
303 var base_font = attrs.font.replace(/bold/, '').replace(/italic/, ''); 303 var baseFont = attrs.font.replace(/bold/, '').replace(/italic/, '');
304 this.status_.style.font = base_font; 304 this.status_.style.font = baseFont;
305 this.action_.style.font = base_font; 305 this.action_.style.font = baseFont;
306 } 306 }
307 }, 307 },
308 308
309 /** @override */ 309 /** @override */
310 activate: function() { 310 activate: function() {
311 // Close action area and connect if it is visible. 311 // Close action area and connect if it is visible.
312 if (this.isActionVisible_()) { 312 if (this.isActionVisible_()) {
313 this.showAction_(false); 313 this.showAction_(false);
314 this.handleConnect_(); 314 this.handleConnect_();
315 return; 315 return;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 event.target == item.autoConnectCheckbox.nextElementSibling || 352 event.target == item.autoConnectCheckbox.nextElementSibling ||
353 event.target == item.ssidEdit || 353 event.target == item.ssidEdit ||
354 event.target == item.passwordEdit) { 354 event.target == item.passwordEdit) {
355 return; 355 return;
356 } 356 }
357 } 357 }
358 358
359 Menu.prototype.onClick_.call(this, event, item); 359 Menu.prototype.onClick_.call(this, event, item);
360 }, 360 },
361 }; 361 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698