| 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 /** | 5 /** |
| 6 * @typedef {{accessibility: Function, | 6 * @typedef {{accessibility: Function, |
| 7 * documentLoadComplete: Function, | 7 * documentLoadComplete: Function, |
| 8 * getHeight: Function, | 8 * getHeight: Function, |
| 9 * getHorizontalScrollbarThickness: Function, | 9 * getHorizontalScrollbarThickness: Function, |
| 10 * getPageLocationNormalized: Function, | 10 * getPageLocationNormalized: Function, |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 330 |
| 331 [ | 331 [ |
| 332 this.printTicketStore_.color, | 332 this.printTicketStore_.color, |
| 333 this.printTicketStore_.cssBackground, | 333 this.printTicketStore_.cssBackground, |
| 334 this.printTicketStore_.customMargins, | 334 this.printTicketStore_.customMargins, |
| 335 this.printTicketStore_.fitToPage, | 335 this.printTicketStore_.fitToPage, |
| 336 this.printTicketStore_.headerFooter, | 336 this.printTicketStore_.headerFooter, |
| 337 this.printTicketStore_.landscape, | 337 this.printTicketStore_.landscape, |
| 338 this.printTicketStore_.marginsType, | 338 this.printTicketStore_.marginsType, |
| 339 this.printTicketStore_.pageRange, | 339 this.printTicketStore_.pageRange, |
| 340 this.printTicketStore_.rasterize, |
| 340 this.printTicketStore_.selectionOnly, | 341 this.printTicketStore_.selectionOnly, |
| 341 this.printTicketStore_.scaling | 342 this.printTicketStore_.scaling |
| 342 ].forEach(function(setting) { | 343 ].forEach(function(setting) { |
| 343 this.tracker.add( | 344 this.tracker.add( |
| 344 setting, | 345 setting, |
| 345 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 346 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 346 this.onTicketChange_.bind(this)); | 347 this.onTicketChange_.bind(this)); |
| 347 }.bind(this)); | 348 }.bind(this)); |
| 348 | 349 |
| 349 if (this.checkPluginCompatibility_()) { | 350 if (this.checkPluginCompatibility_()) { |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 // being draggable. | 666 // being draggable. |
| 666 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; | 667 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; |
| 667 } | 668 } |
| 668 }; | 669 }; |
| 669 | 670 |
| 670 // Export | 671 // Export |
| 671 return { | 672 return { |
| 672 PreviewArea: PreviewArea | 673 PreviewArea: PreviewArea |
| 673 }; | 674 }; |
| 674 }); | 675 }); |
| OLD | NEW |