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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos_system_options.js
===================================================================
--- chrome/browser/resources/options/chromeos_system_options.js (revision 0)
+++ chrome/browser/resources/options/chromeos_system_options.js (revision 0)
@@ -0,0 +1,41 @@
+// 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');
+ timezone.initializeValues(templateData.timezoneList);
+
+ $('language-button').onclick = function(event) {
+ // TODO: Open ChromeOS language settings page.
+ };
+ },
+};
+
Property changes on: chrome/browser/resources/options/chromeos_system_options.js
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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