Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 1613643005: MD Downloads: fix closure compilation issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-find
Patch Set: revulc Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « no previous file | ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698