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

Side by Side Diff: chrome/browser/resources/print_preview/layout_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: Refactoring css class displaytable, removing class displaytablerow Created 9 years, 2 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 | 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 LayoutSettings object. This object encapsulates all settings and 9 * Creates a LayoutSettings object. This object encapsulates all settings and
10 * logic related to layout mode (portrait/landscape). 10 * logic related to layout mode (portrait/landscape).
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 onPDFLoaded_: function() { 101 onPDFLoaded_: function() {
102 this.fadeInOut_(!previewModifiable); 102 this.fadeInOut_(!previewModifiable);
103 }, 103 },
104 104
105 /** 105 /**
106 * @param {boolean} fadeOut True if |this.layoutOption_| should be faded 106 * @param {boolean} fadeOut True if |this.layoutOption_| should be faded
107 * out, false if it should be faded in. 107 * out, false if it should be faded in.
108 * @private 108 * @private
109 */ 109 */
110 fadeInOut_: function(fadeOut) { 110 fadeInOut_: function(fadeOut) {
111 fadeOut ? fadeOutElement(this.layoutOption_) : 111 fadeOut ? fadeOutOption(this.layoutOption_) :
112 fadeInElement(this.layoutOption_); 112 fadeInOption(this.layoutOption_);
113 } 113 }
114 }; 114 };
115 115
116 return { 116 return {
117 LayoutSettings: LayoutSettings, 117 LayoutSettings: LayoutSettings,
118 }; 118 };
119 }); 119 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698