OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Creates a Margins object that holds four margin values. The units in which | 9 * Creates a Margins object that holds four margin values. The units in which |
10 * the values are expressed can be any numeric value. | 10 * the values are expressed can be any numeric value. |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 this.lastSelectedOption_ = MarginSettings.MARGINS_VALUE_DEFAULT; | 592 this.lastSelectedOption_ = MarginSettings.MARGINS_VALUE_DEFAULT; |
593 } | 593 } |
594 }, | 594 }, |
595 | 595 |
596 /** | 596 /** |
597 * Executes when a PDFLoaded event occurs. | 597 * Executes when a PDFLoaded event occurs. |
598 * @private | 598 * @private |
599 */ | 599 */ |
600 onPDFLoaded_: function() { | 600 onPDFLoaded_: function() { |
601 if (!previewModifiable) | 601 if (!previewModifiable) |
602 fadeOutElement(this.marginsOption_); | 602 fadeOutOption(this.marginsOption_); |
603 } | 603 } |
604 }; | 604 }; |
605 | 605 |
606 return { | 606 return { |
607 MarginSettings: MarginSettings, | 607 MarginSettings: MarginSettings, |
608 PageLayout: PageLayout, | 608 PageLayout: PageLayout, |
609 setNumberFormatAndMeasurementSystem: | 609 setNumberFormatAndMeasurementSystem: |
610 MarginSettings.setNumberFormatAndMeasurementSystem, | 610 MarginSettings.setNumberFormatAndMeasurementSystem, |
611 }; | 611 }; |
612 }); | 612 }); |
OLD | NEW |