| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 this.onTicketChange_.bind(this)); | 343 this.onTicketChange_.bind(this)); |
| 344 this.tracker.add( | 344 this.tracker.add( |
| 345 this.printTicketStore_.customMargins, | 345 this.printTicketStore_.customMargins, |
| 346 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 346 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 347 this.onTicketChange_.bind(this)); | 347 this.onTicketChange_.bind(this)); |
| 348 this.tracker.add( | 348 this.tracker.add( |
| 349 this.printTicketStore_.fitToPage, | 349 this.printTicketStore_.fitToPage, |
| 350 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 350 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 351 this.onTicketChange_.bind(this)); | 351 this.onTicketChange_.bind(this)); |
| 352 this.tracker.add( | 352 this.tracker.add( |
| 353 this.printTicketStore_.printFriendly, |
| 354 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 355 this.onTicketChange_.bind(this)); |
| 356 this.tracker.add( |
| 353 this.printTicketStore_.headerFooter, | 357 this.printTicketStore_.headerFooter, |
| 354 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 358 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 355 this.onTicketChange_.bind(this)); | 359 this.onTicketChange_.bind(this)); |
| 356 this.tracker.add( | 360 this.tracker.add( |
| 357 this.printTicketStore_.landscape, | 361 this.printTicketStore_.landscape, |
| 358 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 362 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| 359 this.onTicketChange_.bind(this)); | 363 this.onTicketChange_.bind(this)); |
| 360 this.tracker.add( | 364 this.tracker.add( |
| 361 this.printTicketStore_.marginsType, | 365 this.printTicketStore_.marginsType, |
| 362 print_preview.ticket_items.TicketItem.EventType.CHANGE, | 366 print_preview.ticket_items.TicketItem.EventType.CHANGE, |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 // being draggable. | 693 // being draggable. |
| 690 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; | 694 this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto'; |
| 691 } | 695 } |
| 692 }; | 696 }; |
| 693 | 697 |
| 694 // Export | 698 // Export |
| 695 return { | 699 return { |
| 696 PreviewArea: PreviewArea | 700 PreviewArea: PreviewArea |
| 697 }; | 701 }; |
| 698 }); | 702 }); |
| OLD | NEW |