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

Side by Side Diff: chrome/browser/resources/print_preview/common/overlay.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * Modal dialog base component. 9 * Modal dialog base component.
10 * @constructor 10 * @constructor
11 * @extends {print_preview.Component} 11 * @extends {print_preview.Component}
12 */ 12 */
13 function Overlay() { 13 function Overlay() {
14 print_preview.Component.call(this); 14 print_preview.Component.call(this);
15 }; 15 }
16 16
17 Overlay.prototype = { 17 Overlay.prototype = {
18 __proto__: print_preview.Component.prototype, 18 __proto__: print_preview.Component.prototype,
19 19
20 /** @override */ 20 /** @override */
21 enterDocument: function() { 21 enterDocument: function() {
22 print_preview.Component.prototype.enterDocument.call(this); 22 print_preview.Component.prototype.enterDocument.call(this);
23 23
24 this.getElement().addEventListener('transitionend', function f(e) { 24 this.getElement().addEventListener('transitionend', function f(e) {
25 if (e.target == e.currentTarget && e.propertyName == 'opacity' && 25 if (e.target == e.currentTarget && e.propertyName == 'opacity' &&
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 if (e.target && e.animationName == 'pulse') 123 if (e.target && e.animationName == 'pulse')
124 e.target.classList.remove('pulse'); 124 e.target.classList.remove('pulse');
125 } 125 }
126 }; 126 };
127 127
128 // Export 128 // Export
129 return { 129 return {
130 Overlay: Overlay 130 Overlay: Overlay
131 }; 131 };
132 }); 132 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698