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

Side by Side Diff: chrome/browser/resources/settings/printing_page/printing_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 2016 The Chromium Authors. All rights reserved. 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 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 Polymer({ 5 Polymer({
6 is: 'settings-printing-page', 6 is: 'settings-printing-page',
7 7
8 properties: { 8 properties: {
9 /** Preferences state. */ 9 /** Preferences state. */
10 prefs: { 10 prefs: {
(...skipping 22 matching lines...) Expand all
33 33
34 searchTerm: { 34 searchTerm: {
35 type: String, 35 type: String,
36 }, 36 },
37 37
38 /** @private {!Map<string, string>} */ 38 /** @private {!Map<string, string>} */
39 focusConfig_: { 39 focusConfig_: {
40 type: Object, 40 type: Object,
41 value: function() { 41 value: function() {
42 var map = new Map(); 42 var map = new Map();
43 map.set( 43 if (settings.routes.CLOUD_PRINTERS) {
44 settings.Route.CLOUD_PRINTERS.path, 44 map.set(
45 '#cloudPrinters .subpage-arrow'); 45 settings.routes.CLOUD_PRINTERS.path,
46 '#cloudPrinters .subpage-arrow');
47 }
46 // <if expr="chromeos"> 48 // <if expr="chromeos">
47 map.set( 49 if (settings.routes.CUPS_PRINTERS) {
48 settings.Route.CUPS_PRINTERS.path, '#cupsPrinters .subpage-arrow'); 50 map.set(
51 settings.routes.CUPS_PRINTERS.path,
52 '#cupsPrinters .subpage-arrow');
53 }
49 // </if> 54 // </if>
50 return map; 55 return map;
51 }, 56 },
52 }, 57 },
53 }, 58 },
54 59
55 listeners: { 60 listeners: {
56 'show-cups-printer-details': 'onShowCupsPrinterDetailsPage_', 61 'show-cups-printer-details': 'onShowCupsPrinterDetailsPage_',
57 }, 62 },
58 63
59 // <if expr="chromeos"> 64 // <if expr="chromeos">
60 /** @private */ 65 /** @private */
61 onTapCupsPrinters_: function() { 66 onTapCupsPrinters_: function() {
62 settings.navigateTo(settings.Route.CUPS_PRINTERS); 67 settings.navigateTo(settings.routes.CUPS_PRINTERS);
63 }, 68 },
64 69
65 /** @private */ 70 /** @private */
66 onShowCupsPrinterDetailsPage_: function(event) { 71 onShowCupsPrinterDetailsPage_: function(event) {
67 settings.navigateTo(settings.Route.CUPS_PRINTER_DETAIL); 72 settings.navigateTo(settings.routes.CUPS_PRINTER_DETAIL);
68 this.$.arraySelector.select(event.detail); 73 this.$.arraySelector.select(event.detail);
69 }, 74 },
70 // </if> 75 // </if>
71 76
72 /** @private */ 77 /** @private */
73 onTapCloudPrinters_: function() { 78 onTapCloudPrinters_: function() {
74 settings.navigateTo(settings.Route.CLOUD_PRINTERS); 79 settings.navigateTo(settings.routes.CLOUD_PRINTERS);
75 }, 80 },
76 }); 81 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698