Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview | |
| 7 * 'settings-manage-a11y-page' is the subpage with the accessibility | |
| 8 * settings. | |
| 9 */ | |
| 10 Polymer({ | |
| 11 is: 'settings-manage-a11y-page', | |
| 12 | |
| 13 properties: { | |
| 14 /** | |
| 15 * Preferences state. | |
| 16 */ | |
| 17 prefs: { | |
| 18 type: Object, | |
| 19 notify: true, | |
| 20 }, | |
| 21 | |
| 22 /** | |
| 23 * Whether to show experimental accessibility features. | |
| 24 * @private {boolean} | |
| 25 */ | |
| 26 showExperimentalFeatures_: { | |
| 27 type: Boolean, | |
| 28 value: function() { | |
| 29 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); | |
| 30 }, | |
| 31 }, | |
| 32 }, | |
| 33 | |
| 34 /** @private */ | |
| 35 onChromeVoxSettingsTap_: function() { | |
| 36 window.open( | |
| 37 'chrome-extension://mndnfokpggljbaajbnioimlmbfngpief/chromevox/backgroun d/options.html'); | |
|
michaelpg
2016/07/29 22:14:21
wrap
also, should we do this in C++? https://cs.c
dmazzoni
2016/08/01 18:45:24
Good idea, done - and thanks for pointing me to an
| |
| 38 }, | |
| 39 | |
| 40 /** @private */ | |
| 41 onDisplayTap_: function() { | |
| 42 console.log('onDisplayTap'); | |
| 43 console.log(this); | |
| 44 console.log(settings); | |
| 45 console.log(settings.navigateTo); | |
| 46 settings.navigateTo(settings.Route.DISPLAY); | |
| 47 }, | |
| 48 | |
| 49 /** @private */ | |
| 50 onAppearanceTap_: function() { | |
| 51 settings.navigateTo(settings.Route.APPEARANCE); | |
| 52 }, | |
| 53 | |
| 54 /** @private */ | |
| 55 onKeyboardTap_: function() { | |
| 56 settings.navigateTo(settings.Route.KEYBOARD); | |
| 57 }, | |
| 58 | |
| 59 /** @private */ | |
| 60 onMouseTap_: function() { | |
| 61 settings.navigateTo(settings.Route.POINTERS); | |
| 62 }, | |
| 63 | |
| 64 /** @private */ | |
| 65 onMoreFeaturesTap_: function() { | |
| 66 window.open( | |
| 67 'https://chrome.google.com/webstore/category/collection/accessibility'); | |
| 68 }, | |
| 69 | |
|
michaelpg
2016/07/29 22:14:21
nit: remove blank line
dmazzoni
2016/08/01 18:45:23
Done
| |
| 70 }); | |
| OLD | NEW |