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

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

Issue 2295533002: [CUPS] Put the CUPS settings UI behind a command line flag --enable-native-cups. (Closed)
Patch Set: Fix the trybot failure Created 4 years, 3 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: {
11 type: Object, 11 type: Object,
12 notify: true, 12 notify: true,
13 }, 13 },
14 14
15 <if expr="chromeos">
16 /**
17 * Whether to show CUPS printers settings.
18 * @private {boolean}
19 */
20 showCupsPrintingFeatures_: {
21 type: Boolean,
22 value: function() {
23 return loadTimeData.getBoolean('showCupsPrintingFeatures');
24 },
25 },
26 </if>
27
15 /** @type {!Array<!CupsPrinterInfo>} */ 28 /** @type {!Array<!CupsPrinterInfo>} */
16 cupsPrinters: { 29 cupsPrinters: {
17 type: Array, 30 type: Array,
18 notify: true, 31 notify: true,
19 }, 32 },
20 33
21 searchTerm: { 34 searchTerm: {
22 type: String, 35 type: String,
23 }, 36 },
24 }, 37 },
(...skipping 13 matching lines...) Expand all
38 settings.navigateTo(settings.Route.CUPS_PRINTER_DETAIL); 51 settings.navigateTo(settings.Route.CUPS_PRINTER_DETAIL);
39 this.$.arraySelector.select(event.detail); 52 this.$.arraySelector.select(event.detail);
40 }, 53 },
41 </if> 54 </if>
42 55
43 /** @private */ 56 /** @private */
44 onTapCloudPrinters_: function() { 57 onTapCloudPrinters_: function() {
45 settings.navigateTo(settings.Route.CLOUD_PRINTERS); 58 settings.navigateTo(settings.Route.CLOUD_PRINTERS);
46 }, 59 },
47 }); 60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698