Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1113)

Side by Side Diff: chrome/browser/resources/settings/a11y_page/a11y_page.js

Issue 1785833002: Add 5 experimental accessibility features on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ported to md-settings too Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 settings page containing accessibility 7 * 'settings-a11y-page' is the settings page containing accessibility
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <iron-animated-pages> 12 * <iron-animated-pages>
13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> 13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page>
14 * ... other pages ... 14 * ... other pages ...
15 * </iron-animated-pages> 15 * </iron-animated-pages>
16 */ 16 */
17 Polymer({ 17 Polymer({
18 is: 'settings-a11y-page', 18 is: 'settings-a11y-page',
19 19
20 properties: { 20 properties: {
21 /** 21 /**
22 * Preferences state. 22 * Preferences state.
23 */ 23 */
24 prefs: { 24 prefs: {
25 type: Object, 25 type: Object,
26 notify: true, 26 notify: true,
27 }, 27 },
28
29 /** @private Whether to show experimental accessibility features. */
30 showExperimentalFeatures_: Boolean,
Dan Beam 2016/03/11 22:07:20 I think this is all you need: /** * Whether to s
28 }, 31 },
29 32
30 /** @private */ 33 /** @private */
31 onMoreFeaturesTap_: function() { 34 onMoreFeaturesTap_: function() {
32 window.open( 35 window.open(
33 'https://chrome.google.com/webstore/category/collection/accessibility'); 36 'https://chrome.google.com/webstore/category/collection/accessibility');
34 }, 37 },
38
39 /** @override */
40 ready: function() {
41 cr.addWebUIListener('show-experimental-features',
42 this.onShowExperimentalFeatures_.bind(this));
43 chrome.send('initializeAccessibilityPage');
44 },
45
46 /**
47 * Handler for updating whether experimental accessibility features
48 * should be shown.
Dan Beam 2016/03/11 22:07:20 @param {boolean} show ...
49 * @private
50 */
51 onShowExperimentalFeatures_: function(show) {
52 this.showExperimentalFeatures_ = show;
53 },
35 }); 54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698