| 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 if (typeof Polymer == 'undefined') | 5 if (typeof Polymer == 'undefined') |
| 6 Polymer = {dom: 'shadow'}; | 6 Polymer = {dom: 'shadow'}; |
| 7 else | 7 else |
| 8 console.error('Polymer is already defined.'); | 8 console.error('Polymer is already defined.'); |
| 9 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 9 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 10 // Use of this source code is governed by a BSD-style license that can be | 10 // Use of this source code is governed by a BSD-style license that can be |
| (...skipping 16896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16907 if (!this.showingSearch_) | 16907 if (!this.showingSearch_) |
| 16908 return; | 16908 return; |
| 16909 | 16909 |
| 16910 var searchInput = this.getSearchInput_(); | 16910 var searchInput = this.getSearchInput_(); |
| 16911 if (searchInput) | 16911 if (searchInput) |
| 16912 searchInput.focus(); | 16912 searchInput.focus(); |
| 16913 }); | 16913 }); |
| 16914 }, | 16914 }, |
| 16915 | 16915 |
| 16916 /** | 16916 /** |
| 16917 * @return {?HTMLElement} | 16917 * @return {?Element} |
| 16918 * @private | 16918 * @private |
| 16919 */ | 16919 */ |
| 16920 getSearchInput_: function() { | 16920 getSearchInput_: function() { |
| 16921 return this.$$('#search-input'); | 16921 return this.$$('#search-input'); |
| 16922 }, | 16922 }, |
| 16923 | 16923 |
| 16924 /** @private */ | 16924 /** @private */ |
| 16925 onSearchTermSearch_: function() { | 16925 onSearchTermSearch_: function() { |
| 16926 if (this.delegate_) | 16926 if (this.delegate_) |
| 16927 this.delegate_.onSearchTermSearch(this.getValue()); | 16927 this.delegate_.onSearchTermSearch(this.getValue()); |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17234 Manager.get().updateItem_(index, data); | 17234 Manager.get().updateItem_(index, data); |
| 17235 }; | 17235 }; |
| 17236 | 17236 |
| 17237 return {Manager: Manager}; | 17237 return {Manager: Manager}; |
| 17238 }); | 17238 }); |
| 17239 // Copyright 2015 The Chromium Authors. All rights reserved. | 17239 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 17240 // Use of this source code is governed by a BSD-style license that can be | 17240 // Use of this source code is governed by a BSD-style license that can be |
| 17241 // found in the LICENSE file. | 17241 // found in the LICENSE file. |
| 17242 | 17242 |
| 17243 window.addEventListener('load', downloads.Manager.onLoad); | 17243 window.addEventListener('load', downloads.Manager.onLoad); |
| OLD | NEW |