| 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 this.lastSelectedOption_ = MarginSettings.MARGINS_VALUE_DEFAULT; | 608 this.lastSelectedOption_ = MarginSettings.MARGINS_VALUE_DEFAULT; |
| 609 } | 609 } |
| 610 }, | 610 }, |
| 611 | 611 |
| 612 /** | 612 /** |
| 613 * Executes when a |customEvents.PDF_LOADED| event occurs. | 613 * Executes when a |customEvents.PDF_LOADED| event occurs. |
| 614 * @private | 614 * @private |
| 615 */ | 615 */ |
| 616 onPDFLoaded_: function() { | 616 onPDFLoaded_: function() { |
| 617 if (!previewModifiable) | 617 if (!previewModifiable) |
| 618 fadeOutElement(this.marginsOption_); | 618 fadeOutOption(this.marginsOption_); |
| 619 } | 619 } |
| 620 }; | 620 }; |
| 621 | 621 |
| 622 return { | 622 return { |
| 623 MarginSettings: MarginSettings, | 623 MarginSettings: MarginSettings, |
| 624 PageLayout: PageLayout, | 624 PageLayout: PageLayout, |
| 625 setNumberFormatAndMeasurementSystem: | 625 setNumberFormatAndMeasurementSystem: |
| 626 MarginSettings.setNumberFormatAndMeasurementSystem, | 626 MarginSettings.setNumberFormatAndMeasurementSystem, |
| 627 }; | 627 }; |
| 628 }); | 628 }); |
| OLD | NEW |