Commit b36a0a72 authored by zvorygin@chromium.org's avatar zvorygin@chromium.org

[FileBrowser] Added newfolder button.


BUG=138417


Review URL: https://chromiumcodereview.appspot.com/10827316

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151495 0039d316-1c4b-4281-b951-d872f2087c98
parent 331578db
...@@ -1546,3 +1546,7 @@ body:not([ctrl-pressing]) [visibleif='ctrl'] { ...@@ -1546,3 +1546,7 @@ body:not([ctrl-pressing]) [visibleif='ctrl'] {
button:focus { button:focus {
outline-color: rgb(77, 144, 254); outline-color: rgb(77, 144, 254);
} }
#new-folder {
margin-right: 30px;
}
...@@ -670,6 +670,9 @@ FileManager.prototype = { ...@@ -670,6 +670,9 @@ FileManager.prototype = {
this.defaultActionMenuItem_.addEventListener('activate', this.defaultActionMenuItem_.addEventListener('activate',
this.dispatchSelectionAction_.bind(this)); this.dispatchSelectionAction_.bind(this));
this.dialogDom_.querySelector('#new-folder').addEventListener('click',
this.onNewFolderCommand_.bind(this));
this.fileTypeSelector_ = this.dialogDom_.querySelector('#file-type'); this.fileTypeSelector_ = this.dialogDom_.querySelector('#file-type');
this.initFileTypeFilter_(); this.initFileTypeFilter_();
// Populate the static localized strings. // Populate the static localized strings.
...@@ -2056,7 +2059,7 @@ FileManager.prototype = { ...@@ -2056,7 +2059,7 @@ FileManager.prototype = {
* nothing if no item is being renamed or such an item disappeared. * nothing if no item is being renamed or such an item disappeared.
* *
* While refreshing file list it gets repopulated with new file entries. * While refreshing file list it gets repopulated with new file entries.
* There is not a big difference wether DOM items stay the same or not. * There is not a big difference whether DOM items stay the same or not.
* Except for the item that the user is renaming. * Except for the item that the user is renaming.
*/ */
FileManager.prototype.restoreItemBeingRenamed_ = function() { FileManager.prototype.restoreItemBeingRenamed_ = function() {
......
...@@ -231,6 +231,8 @@ ...@@ -231,6 +231,8 @@
</div> </div>
</div> </div>
<div class=dialog-footer invisibleif="full-page"> <div class=dialog-footer invisibleif="full-page">
<button id="new-folder" i18n-content=NEW_FOLDER_BUTTON_LABEL
visibleif="saveas-file">[NEW FOLDER]</button>
<div id="filename-input-box"> <div id="filename-input-box">
<div class=filename-label i18n-content=FILENAME_LABEL>[FILENAME]</div> <div class=filename-label i18n-content=FILENAME_LABEL>[FILENAME]</div>
<input type=text spellcheck=false> <input type=text spellcheck=false>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment