| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-a11y-page' is the small section of advanced settings with | 7 * 'settings-a11y-page' is the small section of advanced settings with |
| 8 * a link to the web store accessibility page on most platforms, and | 8 * a link to the web store accessibility page on most platforms, and |
| 9 * a subpage with lots of other settings on Chrome OS. | 9 * a subpage with lots of other settings on Chrome OS. |
| 10 */ | 10 */ |
| 11 Polymer({ | 11 Polymer({ |
| 12 is: 'settings-a11y-page', | 12 is: 'settings-a11y-page', |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 /** | 15 /** |
| 16 * The current active route. | 16 * The current active route. |
| 17 */ | 17 */ |
| 18 currentRoute: { | 18 currentRoute: { |
| 19 type: Object, | 19 type: Object, |
| 20 notify: true, | 20 notify: true, |
| 21 }, | 21 }, |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Preferences state. | 24 * Preferences state. |
| 25 */ | 25 */ |
| 26 prefs: { | 26 prefs: { |
| 27 type: Object, | 27 type: Object, |
| 28 notify: true, | 28 notify: true, |
| 29 }, | 29 }, |
| 30 | |
| 31 /** @private */ | |
| 32 isGuest_: { | |
| 33 type: Boolean, | |
| 34 value: function() { return loadTimeData.getBoolean('isGuest'); } | |
| 35 }, | |
| 36 }, | 30 }, |
| 37 | 31 |
| 38 // <if expr="chromeos"> | 32 // <if expr="chromeos"> |
| 39 /** @private */ | 33 /** @private */ |
| 40 onManageAccessibilityFeaturesTap_: function() { | 34 onManageAccessibilityFeaturesTap_: function() { |
| 41 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY); | 35 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY); |
| 42 }, | 36 }, |
| 43 // </if> | 37 // </if> |
| 44 | 38 |
| 45 /** @private */ | 39 /** @private */ |
| 46 onMoreFeaturesTap_: function() { | 40 onMoreFeaturesTap_: function() { |
| 47 window.open( | 41 window.open( |
| 48 'https://chrome.google.com/webstore/category/collection/accessibility'); | 42 'https://chrome.google.com/webstore/category/collection/accessibility'); |
| 49 }, | 43 }, |
| 50 }); | 44 }); |
| OLD | NEW |