blob: 48af6ae4163bfa1f62e84b15b2b2e58a74534e1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
///////////////////////////////////////////////////////////////////////////////
// SystemOptions class:
/**
* Encapsulated handling of ChromeOS system options page.
* @constructor
*/
function SystemOptions(model) {
OptionsPage.call(this, 'system', templateData.systemPage, 'systemPage');
}
SystemOptions.getInstance = function() {
if (SystemOptions.instance_)
return SystemOptions.instance_;
SystemOptions.instance_ = new SystemOptions(null);
return SystemOptions.instance_;
}
// Inherit SystemOptions from OptionsPage.
SystemOptions.prototype = {
__proto__: OptionsPage.prototype,
/**
* Initializes SystemOptions page.
* Calls base class implementation to starts preference initialization.
*/
initializePage: function() {
OptionsPage.prototype.initializePage.call(this);
var timezone = $('timezone-select');
if (timezone) {
timezone.initializeValues(templateData.timezoneList);
}
$('language-button').onclick = function(event) {
// TODO: Open ChromeOS language settings page.
};
},
};
|