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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js

Issue 1061483002: Show UI when a folder is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change listen events. Created 5 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * The root of the file manager's view managing the DOM of Files.app. 6 * The root of the file manager's view managing the DOM of Files.app.
7 * 7 *
8 * @param {!HTMLElement} element Top level element of Files.app. 8 * @param {!HTMLElement} element Top level element of Files.app.
9 * @param {!LaunchParam} launchParam Launch param. 9 * @param {!LaunchParam} launchParam Launch param.
10 * @constructor 10 * @constructor
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 * Search box. 146 * Search box.
147 * @type {!SearchBox} 147 * @type {!SearchBox}
148 * @const 148 * @const
149 */ 149 */
150 this.searchBox = new SearchBox( 150 this.searchBox = new SearchBox(
151 this.element.querySelector('#search-box'), 151 this.element.querySelector('#search-box'),
152 this.element.querySelector('#search-button'), 152 this.element.querySelector('#search-button'),
153 this.element.querySelector('#no-search-results')); 153 this.element.querySelector('#no-search-results'));
154 154
155 /** 155 /**
156 * Empty folder UI.
157 * @type {!EmptyFolder}
158 * @const
159 */
160 this.emptyFolder = new EmptyFolder(
161 queryRequiredElement(this.element, '#empty-folder'));
162
163 /**
156 * Toggle-view button. 164 * Toggle-view button.
157 * @type {!Element} 165 * @type {!Element}
158 * @const 166 * @const
159 */ 167 */
160 this.toggleViewButton = queryRequiredElement(this.element, '#view-button'); 168 this.toggleViewButton = queryRequiredElement(this.element, '#view-button');
161 169
162 /** 170 /**
163 * The button to open gear menu. 171 * The button to open gear menu.
164 * @type {!cr.ui.MenuButton} 172 * @type {!cr.ui.MenuButton}
165 * @const 173 * @const
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 }, 441 },
434 442
435 handleSplitterDragEnd: function(e) { 443 handleSplitterDragEnd: function(e) {
436 Splitter.prototype.handleSplitterDragEnd.apply(this, arguments); 444 Splitter.prototype.handleSplitterDragEnd.apply(this, arguments);
437 this.ownerDocument.documentElement.classList.remove('col-resize'); 445 this.ownerDocument.documentElement.classList.remove('col-resize');
438 } 446 }
439 }; 447 };
440 448
441 customSplitter.decorate(splitterElement); 449 customSplitter.decorate(splitterElement);
442 }; 450 };
OLDNEW
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/empty_folder.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698