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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/ui/empty_folder.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
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698