| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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('downloads', function() { | 5 cr.define('downloads', function() { |
| 6 var Toolbar = Polymer({ | 6 var Toolbar = Polymer({ |
| 7 is: 'downloads-toolbar', | 7 is: 'downloads-toolbar', |
| 8 | 8 |
| 9 /** @param {!downloads.ActionService} actionService */ | 9 /** @param {!downloads.ActionService} actionService */ |
| 10 setActionService: function(actionService) { | 10 setActionService: function(actionService) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 if (this.showingSearch_) { | 77 if (this.showingSearch_) { |
| 78 this.$['search-term'].focus(); | 78 this.$['search-term'].focus(); |
| 79 } else { | 79 } else { |
| 80 this.$['search-term'].value = ''; | 80 this.$['search-term'].value = ''; |
| 81 this.onSearchTermInput_(); | 81 this.onSearchTermInput_(); |
| 82 } | 82 } |
| 83 }, | 83 }, |
| 84 | 84 |
| 85 /** @private */ | 85 /** @private */ |
| 86 updateClearAll_: function() { | 86 updateClearAll_: function() { |
| 87 this.$['clear-all'].hidden = !this.canClearAll(); | 87 this.$$('#actions .clear-all').hidden = !this.canClearAll(); |
| 88 this.$$('paper-menu .clear-all').hidden = !this.canClearAll(); |
| 88 }, | 89 }, |
| 89 }); | 90 }); |
| 90 | 91 |
| 91 return {Toolbar: Toolbar}; | 92 return {Toolbar: Toolbar}; |
| 92 }); | 93 }); |
| 94 |
| 95 // TODO(dbeam): https://github.com/PolymerElements/iron-dropdown/pull/16/files |
| 96 /** @suppress {checkTypes} */ |
| 97 (function() { |
| 98 Polymer.IronDropdownScrollManager.pushScrollLock = function() {}; |
| 99 })(); |
| OLD | NEW |