| 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 }, |
| 30 }, | 36 }, |
| 31 | 37 |
| 32 // <if expr="chromeos"> | 38 // <if expr="chromeos"> |
| 33 /** @private */ | 39 /** @private */ |
| 34 onManageAccessibilityFeaturesTap_: function() { | 40 onManageAccessibilityFeaturesTap_: function() { |
| 35 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY); | 41 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY); |
| 36 }, | 42 }, |
| 37 // </if> | 43 // </if> |
| 38 | 44 |
| 39 /** @private */ | 45 /** @private */ |
| 40 onMoreFeaturesTap_: function() { | 46 onMoreFeaturesTap_: function() { |
| 41 window.open( | 47 window.open( |
| 42 'https://chrome.google.com/webstore/category/collection/accessibility'); | 48 'https://chrome.google.com/webstore/category/collection/accessibility'); |
| 43 }, | 49 }, |
| 44 }); | 50 }); |
| OLD | NEW |