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

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

Issue 1265683003: MD downloads: add a narrow mode for smaller windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@paper-menu-button2
Patch Set: tommycli@ review Created 5 years, 4 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
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 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
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 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/toolbar.html ('k') | ui/webui/resources/polymer_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698