OLD | NEW |
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 * @fileoverview Network drop-down implementation. | 6 * @fileoverview Network drop-down implementation. |
7 */ | 7 */ |
8 | 8 |
9 cr.define('cr.ui', function() { | 9 cr.define('cr.ui', function() { |
10 /** | 10 /** |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 }; | 396 }; |
397 | 397 |
398 /** | 398 /** |
399 * Deactivates network drop-down. Deactivating inactive drop-down does | 399 * Deactivates network drop-down. Deactivating inactive drop-down does |
400 * nothing. | 400 * nothing. |
401 * @param {string} elementId Id of network drop-down element. | 401 * @param {string} elementId Id of network drop-down element. |
402 */ | 402 */ |
403 DropDown.hide = function(elementId) { | 403 DropDown.hide = function(elementId) { |
404 if (DropDown.activeElementId_ == elementId) { | 404 if (DropDown.activeElementId_ == elementId) { |
405 DropDown.activeElementId_ = ''; | 405 DropDown.activeElementId_ = ''; |
406 chrome.send('networkDropdownHide', []); | 406 chrome.send('networkDropdownHide'); |
407 } | 407 } |
408 }; | 408 }; |
409 | 409 |
410 /** | 410 /** |
411 * Refreshes network drop-down. Should be called on language change. | 411 * Refreshes network drop-down. Should be called on language change. |
412 */ | 412 */ |
413 DropDown.refresh = function() { | 413 DropDown.refresh = function() { |
414 chrome.send('networkDropdownRefresh', []); | 414 chrome.send('networkDropdownRefresh'); |
415 }; | 415 }; |
416 | 416 |
417 return { | 417 return { |
418 DropDown: DropDown | 418 DropDown: DropDown |
419 }; | 419 }; |
420 }); | 420 }); |
OLD | NEW |