OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |