OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * Empty folder UI. |
| 7 * @param {!HTMLElement} emptyFolder DOM element of empty folder. |
| 8 * @constructor |
| 9 * @struct |
| 10 */ |
| 11 function EmptyFolder(emptyFolder) { |
| 12 /** |
| 13 * @private {!HTMLElement} |
| 14 */ |
| 15 this.emptyFolder_ = emptyFolder; |
| 16 } |
| 17 |
| 18 /** |
| 19 * Shows empty folder UI. |
| 20 */ |
| 21 EmptyFolder.prototype.show = function() { |
| 22 this.emptyFolder_.hidden = false; |
| 23 }; |
| 24 |
| 25 /** |
| 26 * Hides empty folder UI. |
| 27 */ |
| 28 EmptyFolder.prototype.hide = function() { |
| 29 this.emptyFolder_.hidden = true; |
| 30 }; |
OLD | NEW |