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