forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch just introduces details panel(just empty) & details button.
It's under development, so please pass --enable-files-details-panel as an extra argument to activate this feature. BUG=274045 Review URL: https://codereview.chromium.org/1762623002 Cr-Commit-Position: refs/heads/master@{#379718}
- Loading branch information
Showing
14 changed files
with
204 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+498 Bytes
ui/file_manager/file_manager/foreground/images/files/ui/2x/details_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+317 Bytes
ui/file_manager/file_manager/foreground/images/files/ui/details_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
ui/file_manager/file_manager/foreground/js/ui/details_container.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
/** | ||
* @param {!HTMLElement} element | ||
* @param {!Element} splitter | ||
* @param {!Element} button | ||
* @param {!FilesToggleRipple} toggleRipple | ||
* @constructor | ||
* @struct | ||
*/ | ||
function DetailsContainer(element, splitter, button, toggleRipple) { | ||
/** | ||
* Container element. | ||
* @private {!HTMLElement} | ||
* @const | ||
*/ | ||
this.element_ = element; | ||
/** | ||
* Splitter element between the file list and the details panel. | ||
* @private {!Element} | ||
* @const | ||
*/ | ||
this.splitter_ = splitter; | ||
/** | ||
* "View details" button element. | ||
* @private {!Element} | ||
* @const | ||
*/ | ||
this.button_ = button; | ||
/** | ||
* Ripple element of "View details" button. | ||
* @private {!Element} | ||
* @const | ||
*/ | ||
this.toggleRipple_ = toggleRipple; | ||
/** | ||
* @type {boolean} | ||
*/ | ||
this.visible = false; | ||
this.setVisibility(false); | ||
} | ||
|
||
DetailsContainer.prototype.onFileSelectionChanged = function(event) { | ||
var selection = event.target.selection; | ||
}; | ||
|
||
/** | ||
* Sets the details panel visibility | ||
* @param {boolean} visibility True if the details panel is visible. | ||
*/ | ||
DetailsContainer.prototype.setVisibility = function(visibility) { | ||
if (visibility) { | ||
this.splitter_.setAttribute('activated', ''); | ||
this.element_.setAttribute('activated', ''); | ||
} else { | ||
this.splitter_.removeAttribute('activated'); | ||
this.element_.removeAttribute('activated'); | ||
} | ||
this.visible = visibility; | ||
this.toggleRipple_.activated = visibility; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters