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/common/search_bubble.js

Issue 575333002: Compile print_preview, part 2: reduce down to 260 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview
Patch Set: revert movement of enums: now handle in compiler pass Created 6 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
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 * Encapsulated handling of a search bubble. 9 * Encapsulated handling of a search bubble.
10 * @constructor 10 * @constructor
11 * @extends {HTMLDivElement}
11 */ 12 */
12 function SearchBubble(text) { 13 function SearchBubble(text) {
13 var el = cr.doc.createElement('div'); 14 var el = cr.doc.createElement('div');
14 SearchBubble.decorate(el); 15 SearchBubble.decorate(el);
15 el.content = text; 16 el.content = text;
16 return el; 17 return el;
17 } 18 }
18 19
19 SearchBubble.decorate = function(el) { 20 SearchBubble.decorate = function(el) {
20 el.__proto__ = SearchBubble.prototype; 21 el.__proto__ = SearchBubble.prototype;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 this.lastTop = top; 106 this.lastTop = top;
106 } 107 }
107 }, 108 },
108 }; 109 };
109 110
110 // Export 111 // Export
111 return { 112 return {
112 SearchBubble: SearchBubble 113 SearchBubble: SearchBubble
113 }; 114 };
114 }); 115 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/common/search_box.js ('k') | chrome/browser/resources/print_preview/component.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698