return {
EXTERNAL_API: [
'enableContinueButton',
+ 'setInputMethod',
'setTimezone',
'showError'
],
},
/**
+ * 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.
*/
messageDiv.className = 'error-message-bubble';
messageDiv.textContent = message;
error.appendChild(messageDiv);
+ error.setAttribute('role', 'alert');
$('bubble').showContentForElement($('networks-list'),
cr.ui.Bubble.Attachment.BOTTOM,