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

Side by Side Diff: chrome/browser/resources/print_preview/data/ticket_items/copies.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('print_preview.ticket_items', function() { 5 cr.define('print_preview.ticket_items', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Copies ticket item whose value is a {@code string} that indicates how many 9 * Copies ticket item whose value is a {@code string} that indicates how many
10 * copies of the document should be printed. The ticket item is backed by a 10 * copies of the document should be printed. The ticket item is backed by a
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 getCapabilityNotAvailableValueInternal: function() { 54 getCapabilityNotAvailableValueInternal: function() {
55 return '1'; 55 return '1';
56 }, 56 },
57 57
58 /** 58 /**
59 * @return {Object} Copies capability of the selected destination. 59 * @return {Object} Copies capability of the selected destination.
60 * @private 60 * @private
61 */ 61 */
62 getCopiesCapability_: function() { 62 getCopiesCapability_: function() {
63 var dest = this.getSelectedDestInternal(); 63 var dest = this.getSelectedDestInternal();
64 return (dest && 64 return (dest && dest.capabilities && dest.capabilities.printer &&
65 dest.capabilities &&
66 dest.capabilities.printer &&
67 dest.capabilities.printer.copies) || 65 dest.capabilities.printer.copies) ||
68 null; 66 null;
69 } 67 }
70 }; 68 };
71 69
72 // Export 70 // Export
73 return { 71 return {Copies: Copies};
74 Copies: Copies
75 };
76 }); 72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698