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

Side by Side Diff: chrome/browser/resources/print_preview/data/document_info.js

Issue 2862203002: Print Preview: Fix data/ errors (Closed)
Patch Set: Fix destination resolver Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * Data model which contains information related to the document to print. 9 * Data model which contains information related to the document to print.
10 * @constructor 10 * @constructor
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * @private 82 * @private
83 */ 83 */
84 this.title_ = ''; 84 this.title_ = '';
85 85
86 /** 86 /**
87 * Whether this data model has been initialized. 87 * Whether this data model has been initialized.
88 * @type {boolean} 88 * @type {boolean}
89 * @private 89 * @private
90 */ 90 */
91 this.isInitialized_ = false; 91 this.isInitialized_ = false;
92 }; 92 }
93 93
94 /** 94 /**
95 * Event types dispatched by this data model. 95 * Event types dispatched by this data model.
96 * @enum {string} 96 * @enum {string}
97 */ 97 */
98 DocumentInfo.EventType = { 98 DocumentInfo.EventType = {
99 CHANGE: 'print_preview.DocumentInfo.CHANGE' 99 CHANGE: 'print_preview.DocumentInfo.CHANGE'
100 }; 100 };
101 101
102 DocumentInfo.prototype = { 102 DocumentInfo.prototype = {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 cr.dispatchSimpleEvent(this, DocumentInfo.EventType.CHANGE); 220 cr.dispatchSimpleEvent(this, DocumentInfo.EventType.CHANGE);
221 } 221 }
222 } 222 }
223 }; 223 };
224 224
225 // Export 225 // Export
226 return { 226 return {
227 DocumentInfo: DocumentInfo 227 DocumentInfo: DocumentInfo
228 }; 228 };
229 }); 229 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698