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

Side by Side Diff: chrome/browser/resources/print_preview/margin_settings.js

Issue 8371017: Print Preview: Changing the structure of the html/css. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating unittests Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/margin_settings.html ('k') | chrome/browser/resources/print_preview/page_settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698