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

Unified Diff: chrome/browser/resources/options/chromeos_language_hangul_options.js

Issue 2853032: Add a DOM UI version of ibus-hangul configuration dialog. (Closed)
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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos_language_hangul_options.js
diff --git a/chrome/browser/resources/options/chromeos_language_hangul_options.js b/chrome/browser/resources/options/chromeos_language_hangul_options.js
new file mode 100644
index 0000000000000000000000000000000000000000..30288390afc4c2d69c4eaa9db7b9221c678481a4
--- /dev/null
+++ b/chrome/browser/resources/options/chromeos_language_hangul_options.js
@@ -0,0 +1,37 @@
+// 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.
+
+///////////////////////////////////////////////////////////////////////////////
+// LanguageHangulOptions class:
+
+/**
+ * Encapsulated handling of ChromeOS language Hangul options page.
+ * @constructor
+ */
+function LanguageHangulOptions(model) {
+ OptionsPage.call(this, 'languageHangul', templateData.languageHangulPage,
+ 'languageHangulPage');
+}
+
+LanguageHangulOptions.getInstance = function() {
+ if (LanguageHangulOptions.instance_)
+ return LanguageHangulOptions.instance_;
+ LanguageHangulOptions.instance_ = new LanguageHangulOptions(null);
+ return LanguageHangulOptions.instance_;
+}
+
+// Inherit LanguageHangulOptions from OptionsPage.
+LanguageHangulOptions.prototype = {
+ __proto__: OptionsPage.prototype,
+
+ /**
+ * Initializes LanguageHangulOptions page.
+ * Calls base class implementation to starts preference initialization.
+ */
+ initializePage: function() {
+ OptionsPage.prototype.initializePage.call(this);
+ var keyboardLayout = $('keyboard-layout-select');
+ keyboardLayout.initializeValues(templateData.keyboardLayoutList)
+ },
+};
« no previous file with comments | « chrome/browser/resources/options/chromeos_language_hangul_options.html ('k') | chrome/browser/resources/options/pref_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698