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

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

Issue 2863183004: Print Preview: Fix top level directory compile errors (Closed)
Patch Set: Address comments 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 * Interface to the Chromium print preview generator. 9 * Interface to the Chromium print preview generator.
10 * @param {!print_preview.DestinationStore} destinationStore Used to get the 10 * @param {!print_preview.DestinationStore} destinationStore Used to get the
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 this.selectedDestination_ = null; 129 this.selectedDestination_ = null;
130 130
131 /** 131 /**
132 * Event tracker used to keep track of native layer events. 132 * Event tracker used to keep track of native layer events.
133 * @type {!EventTracker} 133 * @type {!EventTracker}
134 * @private 134 * @private
135 */ 135 */
136 this.tracker_ = new EventTracker(); 136 this.tracker_ = new EventTracker();
137 137
138 this.addEventListeners_(); 138 this.addEventListeners_();
139 }; 139 }
140 140
141 /** 141 /**
142 * Event types dispatched by the preview generator. 142 * Event types dispatched by the preview generator.
143 * @enum {string} 143 * @enum {string}
144 */ 144 */
145 PreviewGenerator.EventType = { 145 PreviewGenerator.EventType = {
146 // Dispatched when the document can be printed. 146 // Dispatched when the document can be printed.
147 DOCUMENT_READY: 'print_preview.PreviewGenerator.DOCUMENT_READY', 147 DOCUMENT_READY: 'print_preview.PreviewGenerator.DOCUMENT_READY',
148 148
149 // Dispatched when a page preview is ready. The previewIndex field of the 149 // Dispatched when a page preview is ready. The previewIndex field of the
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // current one. 404 // current one.
405 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); 405 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL);
406 } 406 }
407 }; 407 };
408 408
409 // Export 409 // Export
410 return { 410 return {
411 PreviewGenerator: PreviewGenerator 411 PreviewGenerator: PreviewGenerator
412 }; 412 };
413 }); 413 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698