OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |