OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /////////////////////////////////////////////////////////////////////////////// |
| 6 // SystemOptions class: |
| 7 |
| 8 /** |
| 9 * Encapsulated handling of ChromeOS system options page. |
| 10 * @constructor |
| 11 */ |
| 12 function SystemOptions(model) { |
| 13 OptionsPage.call(this, 'system', templateData.systemPage, 'systemPage'); |
| 14 } |
| 15 |
| 16 SystemOptions.getInstance = function() { |
| 17 if (SystemOptions.instance_) |
| 18 return SystemOptions.instance_; |
| 19 SystemOptions.instance_ = new SystemOptions(null); |
| 20 return SystemOptions.instance_; |
| 21 } |
| 22 |
| 23 // Inherit SystemOptions from OptionsPage. |
| 24 SystemOptions.prototype = { |
| 25 __proto__: OptionsPage.prototype, |
| 26 |
| 27 /** |
| 28 * Initializes SystemOptions page. |
| 29 * Calls base class implementation to starts preference initialization. |
| 30 */ |
| 31 initializePage: function() { |
| 32 OptionsPage.prototype.initializePage.call(this); |
| 33 var timezone = $('timezone-select'); |
| 34 timezone.initializeValues(templateData.timezoneList); |
| 35 |
| 36 $('language-button').onclick = function(event) { |
| 37 // TODO: Open ChromeOS language settings page. |
| 38 }; |
| 39 }, |
| 40 }; |
| 41 |
OLD | NEW |