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

Side by Side Diff: chrome/browser/resources/print_preview/header_footer_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 HeaderFooterSettings object. This object encapsulates all 9 * Creates a HeaderFooterSettings object. This object encapsulates all
10 * settings and logic related to the headers and footers checkbox. 10 * settings and logic related to the headers and footers checkbox.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 onHeaderFooterChanged_: function() { 53 onHeaderFooterChanged_: function() {
54 requestPrintPreview(); 54 requestPrintPreview();
55 }, 55 },
56 56
57 /** 57 /**
58 * Listener executing when a PDFLoaded event occurs. 58 * Listener executing when a PDFLoaded event occurs.
59 * @private 59 * @private
60 */ 60 */
61 onPDFLoaded_: function() { 61 onPDFLoaded_: function() {
62 if (!previewModifiable) { 62 if (!previewModifiable) {
63 fadeOutElement(this.headerFooterOption_); 63 fadeOutOption(this.headerFooterOption_);
64 this.headerFooterCheckbox_.checked = false; 64 this.headerFooterCheckbox_.checked = false;
65 } 65 }
66 }, 66 },
67 }; 67 };
68 68
69 return { 69 return {
70 HeaderFooterSettings: HeaderFooterSettings, 70 HeaderFooterSettings: HeaderFooterSettings,
71 }; 71 };
72 }); 72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698