Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / chromeos / login / oobe_screen_network.js
index c184bba..78df29c 100644 (file)
@@ -10,6 +10,7 @@ login.createScreen('NetworkScreen', 'connect', function() {
   return {
     EXTERNAL_API: [
       'enableContinueButton',
+      'setInputMethod',
       'setTimezone',
       'showError'
     ],
@@ -91,6 +92,17 @@ login.createScreen('NetworkScreen', 'connect', function() {
     },
 
     /**
+     * Sets the current input method.
+     * @param {string} inputMethodId The ID of the input method to select.
+     */
+    setInputMethod: function(inputMethodId) {
+      option = $('keyboard-select').querySelector(
+          'option[value="' + inputMethodId + '"]');
+      if (option)
+        option.selected = true;
+    },
+
+    /**
      * Sets the current timezone.
      * @param {string} timezoneId The timezone ID to select.
      */