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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 this.onTicketChange_.bind(this)); | 357 this.onTicketChange_.bind(this)); |
358 this.tracker.add( | 358 this.tracker.add( |
359 this.printTicketStore_.customMargins, | 359 this.printTicketStore_.customMargins, |
360 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 360 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
361 this.onTicketChange_.bind(this)); | 361 this.onTicketChange_.bind(this)); |
362 this.tracker.add( | 362 this.tracker.add( |
363 this.printTicketStore_.fitToPage, | 363 this.printTicketStore_.fitToPage, |
364 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 364 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
365 this.onTicketChange_.bind(this)); | 365 this.onTicketChange_.bind(this)); |
366 this.tracker.add( | 366 this.tracker.add( |
| 367 this.printTicketStore_.printFriendly, |
| 368 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 369 this.onTicketChange_.bind(this)); |
| 370 this.tracker.add( |
367 this.printTicketStore_.headerFooter, | 371 this.printTicketStore_.headerFooter, |
368 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 372 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
369 this.onTicketChange_.bind(this)); | 373 this.onTicketChange_.bind(this)); |
370 this.tracker.add( | 374 this.tracker.add( |
371 this.printTicketStore_.landscape, | 375 this.printTicketStore_.landscape, |
372 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 376 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
373 this.onTicketChange_.bind(this)); | 377 this.onTicketChange_.bind(this)); |
374 this.tracker.add( | 378 this.tracker.add( |
375 this.printTicketStore_.marginsType, | 379 this.printTicketStore_.marginsType, |
376 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 380 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 // being draggable. | 823 // being draggable. |
820 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; | 824 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; |
821 } | 825 } |
822 }; | 826 }; |
823 | 827 |
824 // Export | 828 // Export |
825 return { | 829 return { |
826 PreviewArea: PreviewArea | 830 PreviewArea: PreviewArea |
827 }; | 831 }; |
828 }); | 832 }); |
OLD | NEW |