Index: chrome/browser/resources/settings/a11y_page/a11y_page.js |
diff --git a/chrome/browser/resources/settings/a11y_page/a11y_page.js b/chrome/browser/resources/settings/a11y_page/a11y_page.js |
index 616a004abc9804269d9a163b821cc5677ab6e149..aa9f6b4ec0b5d59f1ca7842d52f1c66b580d3f2e 100644 |
--- a/chrome/browser/resources/settings/a11y_page/a11y_page.js |
+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.js |
@@ -9,67 +9,77 @@ |
* |
* Example: |
* |
- * <core-animated-pages> |
+ * <iron-animated-pages> |
* <cr-settings-a11y-page prefs="{{prefs}}"></cr-settings-a11y-page> |
* ... other pages ... |
- * </core-animated-pages> |
+ * </iron-animated-pages> |
* |
* @group Chrome Settings Elements |
* @element cr-settings-a11y-page |
*/ |
-Polymer('cr-settings-a11y-page', { |
- publish: { |
+Polymer({ |
+ is: 'cr-settings-a11y-page', |
+ |
+ properties: { |
/** |
* Preferences state. |
* |
- * @attribute prefs |
- * @type CrSettingsPrefsElement |
+ * @type {?CrSettingsPrefsElement} |
* @default null |
*/ |
- prefs: null, |
+ prefs: { |
+ type: Object, |
+ notify: true, |
+ }, |
/** |
* Route for the page. |
- * |
- * @attribute route |
- * @type string |
- * @default '' |
*/ |
- route: '', |
+ route: String, |
/** |
* Whether the page is a subpage. |
- * |
- * @attribute subpage |
- * @type boolean |
- * @default false |
*/ |
- subpage: false, |
+ subpage: { |
+ type: Boolean, |
+ value: false, |
+ readOnly: true, |
+ }, |
/** |
* ID of the page. |
- * |
- * @attribute PAGE_ID |
- * @const string |
- * @default 'a11y' |
*/ |
- PAGE_ID: 'a11y', |
+ PAGE_ID: { |
+ type: String, |
+ value: 'a11y', |
+ readOnly: true, |
+ }, |
/** |
* Title for the page header and navigation menu. |
- * |
- * @attribute pageTitle |
- * @type string |
*/ |
- pageTitle: loadTimeData.getString('a11yPageTitle'), |
+ pageTitle: { |
+ type: String, |
+ value: function() { return loadTimeData.getString('a11yPageTitle'); }, |
+ }, |
/** |
- * Name of the 'core-icon' to show. |
- * |
- * @attribute icon |
- * @type string |
- * @default 'accessibility' |
+ * Name of the 'iron-icon' to show. |
*/ |
- icon: 'accessibility', |
+ icon: { |
+ type: String, |
+ value: 'accessibility', |
+ readOnly: true, |
+ }, |
+ }, |
+ |
+ /** |
+ * Called when the selected value of the autoclick dropdown changes. |
+ * TODO(jlklein): Replace with binding when paper-dropdown lands. |
+ * @private |
+ */ |
+ autoclickSelectChanged_: function() { |
+ this.prefs.settings.settings.a11y.autoclick_delay_ms = |
+ this.$.autoclickDropdown.value; |
}, |
}); |