Chromium Code Reviews| OLD | NEW |
|---|---|
| 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', function() { | 5 cr.define('print_preview', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 // TODO(rltoscano): Maybe clear print ticket when destination changes. Or | 8 // TODO(rltoscano): Maybe clear print ticket when destination changes. Or |
| 9 // better yet, carry over any print ticket state that is possible. I.e. if | 9 // better yet, carry over any print ticket state that is possible. I.e. if |
| 10 // destination changes, the new destination might not support duplex anymore, | 10 // destination changes, the new destination might not support duplex anymore, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 | 178 |
| 179 /** | 179 /** |
| 180 * Print selection only ticket item. | 180 * Print selection only ticket item. |
| 181 * @type {!print_preview.ticket_items.SelectionOnly} | 181 * @type {!print_preview.ticket_items.SelectionOnly} |
| 182 * @private | 182 * @private |
| 183 */ | 183 */ |
| 184 this.selectionOnly_ = | 184 this.selectionOnly_ = |
| 185 new print_preview.ticket_items.SelectionOnly(this.documentInfo_); | 185 new print_preview.ticket_items.SelectionOnly(this.documentInfo_); |
| 186 | 186 |
| 187 /** | 187 /** |
| 188 * Print friendly ticket item. | |
| 189 * @type {!print_preview.ticket_items.PrintFriendly} | |
| 190 * @private | |
| 191 */ | |
| 192 this.printFriendly_ = new print_preview.ticket_items.PrintFriendly( | |
|
Vitaly Buka (NO REVIEWS)
2015/07/13 07:00:30
"Print friendly" is not verbose name, not clear wh
arjunpatel
2015/07/21 17:25:00
Acknowledged.
| |
| 193 this.documentInfo_, | |
| 194 this.selectionOnly_); | |
| 195 | |
| 196 /** | |
| 188 * Vendor ticket items. | 197 * Vendor ticket items. |
| 189 * @type {!print_preview.ticket_items.VendorItems} | 198 * @type {!print_preview.ticket_items.VendorItems} |
| 190 * @private | 199 * @private |
| 191 */ | 200 */ |
| 192 this.vendorItems_ = new print_preview.ticket_items.VendorItems( | 201 this.vendorItems_ = new print_preview.ticket_items.VendorItems( |
| 193 this.appState_, this.destinationStore_); | 202 this.appState_, this.destinationStore_); |
| 194 | 203 |
| 195 /** | 204 /** |
| 196 * Keeps track of event listeners for the print ticket store. | 205 * Keeps track of event listeners for the print ticket store. |
| 197 * @type {!EventTracker} | 206 * @type {!EventTracker} |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 }, | 269 }, |
| 261 | 270 |
| 262 get fitToPage() { | 271 get fitToPage() { |
| 263 return this.fitToPage_; | 272 return this.fitToPage_; |
| 264 }, | 273 }, |
| 265 | 274 |
| 266 get headerFooter() { | 275 get headerFooter() { |
| 267 return this.headerFooter_; | 276 return this.headerFooter_; |
| 268 }, | 277 }, |
| 269 | 278 |
| 279 get printFriendly() { | |
| 280 return this.printFriendly_; | |
| 281 }, | |
| 282 | |
| 270 get mediaSize() { | 283 get mediaSize() { |
| 271 return this.mediaSize_; | 284 return this.mediaSize_; |
| 272 }, | 285 }, |
| 273 | 286 |
| 274 get landscape() { | 287 get landscape() { |
| 275 return this.landscape_; | 288 return this.landscape_; |
| 276 }, | 289 }, |
| 277 | 290 |
| 278 get marginsType() { | 291 get marginsType() { |
| 279 return this.marginsType_; | 292 return this.marginsType_; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 onDocumentInfoChange_: function() { | 568 onDocumentInfoChange_: function() { |
| 556 cr.dispatchSimpleEvent(this, PrintTicketStore.EventType.DOCUMENT_CHANGE); | 569 cr.dispatchSimpleEvent(this, PrintTicketStore.EventType.DOCUMENT_CHANGE); |
| 557 }, | 570 }, |
| 558 }; | 571 }; |
| 559 | 572 |
| 560 // Export | 573 // Export |
| 561 return { | 574 return { |
| 562 PrintTicketStore: PrintTicketStore | 575 PrintTicketStore: PrintTicketStore |
| 563 }; | 576 }; |
| 564 }); | 577 }); |
| OLD | NEW |