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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 getCapabilityNotAvailableValueInternal: function() { 48 getCapabilityNotAvailableValueInternal: function() {
49 return '1'; 49 return '1';
50 }, 50 },
51 51
52 /** 52 /**
53 * @return {Object} Copies capability of the selected destination. 53 * @return {Object} Copies capability of the selected destination.
54 * @private 54 * @private
55 */ 55 */
56 getCopiesCapability_: function() { 56 getCopiesCapability_: function() {
57 var dest = this.getSelectedDestInternal(); 57 var dest = this.getSelectedDestInternal();
58 return (dest && 58 return (dest && dest.capabilities && dest.capabilities.printer &&
59 dest.capabilities &&
60 dest.capabilities.printer &&
61 dest.capabilities.printer.copies) || 59 dest.capabilities.printer.copies) ||
62 null; 60 null;
63 } 61 }
64 }; 62 };
65 63
66 // Export 64 // Export
67 return { 65 return {Copies: Copies};
68 Copies: Copies
69 };
70 }); 66 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698