| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 /** | 5 /** |
| 6 * @fileoverview Assertion support. | 6 * @fileoverview Assertion support. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Verify |condition| is truthy and return |condition| if so. | 10 * Verify |condition| is truthy and return |condition| if so. |
| (...skipping 10554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10565 } | 10565 } |
| 10566 | 10566 |
| 10567 this.setValue(''); | 10567 this.setValue(''); |
| 10568 this.$.searchInput.blur(); | 10568 this.$.searchInput.blur(); |
| 10569 }, | 10569 }, |
| 10570 | 10570 |
| 10571 /** @private */ | 10571 /** @private */ |
| 10572 toggleShowingSearch_: function() { | 10572 toggleShowingSearch_: function() { |
| 10573 this.showingSearch = !this.showingSearch; | 10573 this.showingSearch = !this.showingSearch; |
| 10574 }, | 10574 }, |
| 10575 |
| 10576 /** @return {boolean} */ |
| 10577 isSearchFocused: function() { |
| 10578 return this.$.searchTerm.focused; |
| 10579 } |
| 10575 }; | 10580 }; |
| 10576 (function() { | 10581 (function() { |
| 10577 'use strict'; | 10582 'use strict'; |
| 10578 | 10583 |
| 10579 Polymer.IronA11yAnnouncer = Polymer({ | 10584 Polymer.IronA11yAnnouncer = Polymer({ |
| 10580 is: 'iron-a11y-announcer', | 10585 is: 'iron-a11y-announcer', |
| 10581 | 10586 |
| 10582 properties: { | 10587 properties: { |
| 10583 | 10588 |
| 10584 /** | 10589 /** |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11643 Manager.get().updateItem_(index, data); | 11648 Manager.get().updateItem_(index, data); |
| 11644 }; | 11649 }; |
| 11645 | 11650 |
| 11646 return {Manager: Manager}; | 11651 return {Manager: Manager}; |
| 11647 }); | 11652 }); |
| 11648 // Copyright 2015 The Chromium Authors. All rights reserved. | 11653 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 11649 // Use of this source code is governed by a BSD-style license that can be | 11654 // Use of this source code is governed by a BSD-style license that can be |
| 11650 // found in the LICENSE file. | 11655 // found in the LICENSE file. |
| 11651 | 11656 |
| 11652 window.addEventListener('load', downloads.Manager.onLoad); | 11657 window.addEventListener('load', downloads.Manager.onLoad); |
| OLD | NEW |