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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 years, 5 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 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 */
(...skipping 16 matching lines...) Expand all
27 type: Object, 27 type: Object,
28 notify: true, 28 notify: true,
29 }, 29 },
30 30
31 /** @private {!Map<string, string>} */ 31 /** @private {!Map<string, string>} */
32 focusConfig_: { 32 focusConfig_: {
33 type: Object, 33 type: Object,
34 value: function() { 34 value: function() {
35 var map = new Map(); 35 var map = new Map();
36 // <if expr="chromeos"> 36 // <if expr="chromeos">
37 map.set( 37 if (settings.routes.MANAGE_ACCESSIBILITY) {
38 settings.Route.MANAGE_ACCESSIBILITY.path, 38 map.set(
39 '#subpage-trigger .subpage-arrow'); 39 settings.routes.MANAGE_ACCESSIBILITY.path,
40 '#subpage-trigger .subpage-arrow');
41 }
40 // </if> 42 // </if>
41 return map; 43 return map;
42 }, 44 },
43 }, 45 },
44 }, 46 },
45 47
46 // <if expr="chromeos"> 48 // <if expr="chromeos">
47 /** @private */ 49 /** @private */
48 onManageAccessibilityFeaturesTap_: function() { 50 onManageAccessibilityFeaturesTap_: function() {
49 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY); 51 settings.navigateTo(settings.routes.MANAGE_ACCESSIBILITY);
50 }, 52 },
51 // </if> 53 // </if>
52 }); 54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698