| Index: ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| index ed378b68f267131bf4e3c3f54414742ae261437d..c162d7739668e8053c0f6fb0c060bdaa9e6baff8 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
| @@ -236,6 +236,29 @@ FileManagerUI.prototype.initAdditionalUI = function() {
|
| };
|
|
|
| /**
|
| + * Updates the location information displayed on the toolbar.
|
| + * @param {DirectoryEntry=} opt_entry Directory entry to be displayed as
|
| + * current location. Default entry is the current directory.
|
| + */
|
| +FileManagerUI.prototype.updateLocationLine = function(volumeManager, entry) {
|
| + // Updates volume icon.
|
| + var location = volumeManager.getLocationInfo(entry);
|
| + if (location && location.rootType && location.isRootEntry) {
|
| + this.locationVolumeIcon.setAttribute(
|
| + 'volume-type-icon', location.rootType);
|
| + this.locationVolumeIcon.removeAttribute('volume-subtype');
|
| + } else {
|
| + this.locationVolumeIcon.setAttribute(
|
| + 'volume-type-icon', location.volumeInfo.volumeType);
|
| + this.locationVolumeIcon.setAttribute(
|
| + 'volume-subtype', location.volumeInfo.deviceType);
|
| + }
|
| +
|
| + // Updates breadcrumbs.
|
| + this.locationBreadcrumbs.show(entry);
|
| +};
|
| +
|
| +/**
|
| * Handles click event on the search button.
|
| * @param {Event} event Click event.
|
| * @private
|
| @@ -243,4 +266,3 @@ FileManagerUI.prototype.initAdditionalUI = function() {
|
| FileManagerUI.prototype.onSearchButtonClick_ = function(event) {
|
| this.searchBox.inputElement.focus();
|
| };
|
| -
|
|
|