Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: chrome/browser/resources/print_preview/previewarea/preview_area.js

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698