| OLD | NEW |
| 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 * Component used for searching for a print destination. | 9 * Component used for searching for a print destination. |
| 10 * This is a modal dialog that allows the user to search and select a | 10 * This is a modal dialog that allows the user to search and select a |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 }, | 273 }, |
| 274 | 274 |
| 275 /** @override */ | 275 /** @override */ |
| 276 decorateInternal: function() { | 276 decorateInternal: function() { |
| 277 this.searchBox_.render(this.getChildElement('.search-box-container')); | 277 this.searchBox_.render(this.getChildElement('.search-box-container')); |
| 278 this.recentList_.render(this.getChildElement('.recent-list')); | 278 this.recentList_.render(this.getChildElement('.recent-list')); |
| 279 this.localList_.render(this.getChildElement('.local-list')); | 279 this.localList_.render(this.getChildElement('.local-list')); |
| 280 this.cloudList_.render(this.getChildElement('.cloud-list')); | 280 this.cloudList_.render(this.getChildElement('.cloud-list')); |
| 281 this.getChildElement('.promo-text').innerHTML = loadTimeData.getStringF( | 281 this.getChildElement('.promo-text').innerHTML = loadTimeData.getStringF( |
| 282 'cloudPrintPromotion', | 282 'cloudPrintPromotion', |
| 283 '<span class="sign-in link-button">', | 283 '<a is="action-link" class="sign-in">', |
| 284 '</span>'); | 284 '</a>'); |
| 285 this.getChildElement('.account-select-label').textContent = | 285 this.getChildElement('.account-select-label').textContent = |
| 286 loadTimeData.getString('accountSelectTitle'); | 286 loadTimeData.getString('accountSelectTitle'); |
| 287 }, | 287 }, |
| 288 | 288 |
| 289 /** | 289 /** |
| 290 * @return {number} Height available for destination lists, in pixels. | 290 * @return {number} Height available for destination lists, in pixels. |
| 291 * @private | 291 * @private |
| 292 */ | 292 */ |
| 293 getAvailableListsHeight_: function() { | 293 getAvailableListsHeight_: function() { |
| 294 var elStyle = window.getComputedStyle(this.getElement()); | 294 var elStyle = window.getComputedStyle(this.getElement()); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 onWindowResize_: function() { | 687 onWindowResize_: function() { |
| 688 this.reflowLists_(); | 688 this.reflowLists_(); |
| 689 } | 689 } |
| 690 }; | 690 }; |
| 691 | 691 |
| 692 // Export | 692 // Export |
| 693 return { | 693 return { |
| 694 DestinationSearch: DestinationSearch | 694 DestinationSearch: DestinationSearch |
| 695 }; | 695 }; |
| 696 }); | 696 }); |
| OLD | NEW |