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

Side by Side Diff: chrome/browser/resources/options/chromeos_system_options.js

Issue 2835009: Split options page code/html into its own set of files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos_system_options.html ('k') | chrome/browser/resources/options/options_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698