OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * This variable is checked in SelectFileDialogExtensionBrowserTest. | 8 * This variable is checked in SelectFileDialogExtensionBrowserTest. |
9 * @type {number} | 9 * @type {number} |
10 */ | 10 */ |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 this.dispatchSelectionAction_.bind(this)); | 849 this.dispatchSelectionAction_.bind(this)); |
850 | 850 |
851 this.fileTypeSelector_ = this.dialogDom_.querySelector('#file-type'); | 851 this.fileTypeSelector_ = this.dialogDom_.querySelector('#file-type'); |
852 this.initFileTypeFilter_(); | 852 this.initFileTypeFilter_(); |
853 | 853 |
854 util.disableBrowserShortcutKeys(this.document_); | 854 util.disableBrowserShortcutKeys(this.document_); |
855 if (!util.platform.v2()) | 855 if (!util.platform.v2()) |
856 util.enableNewFullScreenHandler(this.document_); | 856 util.enableNewFullScreenHandler(this.document_); |
857 | 857 |
858 this.updateWindowState_(); | 858 this.updateWindowState_(); |
| 859 |
859 // Populate the static localized strings. | 860 // Populate the static localized strings. |
860 i18nTemplate.process(this.document_, loadTimeData); | 861 i18nTemplate.process(this.document_, loadTimeData); |
| 862 |
| 863 // Initialize the new header. |
| 864 if (util.platform.newUI()) { |
| 865 this.dialogDom_.querySelector('#app-name').innerText = |
| 866 chrome.runtime.getManifest().name; |
| 867 } |
861 }; | 868 }; |
862 | 869 |
863 /** | 870 /** |
864 * @private | 871 * @private |
865 */ | 872 */ |
866 FileManager.prototype.onBreadcrumbClick_ = function(event) { | 873 FileManager.prototype.onBreadcrumbClick_ = function(event) { |
867 this.directoryModel_.changeDirectory(event.path); | 874 this.directoryModel_.changeDirectory(event.path); |
868 }; | 875 }; |
869 | 876 |
870 /** | 877 /** |
(...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3409 callback(this.preferences_); | 3416 callback(this.preferences_); |
3410 return; | 3417 return; |
3411 } | 3418 } |
3412 | 3419 |
3413 chrome.fileBrowserPrivate.getPreferences(function(prefs) { | 3420 chrome.fileBrowserPrivate.getPreferences(function(prefs) { |
3414 this.preferences_ = prefs; | 3421 this.preferences_ = prefs; |
3415 callback(prefs); | 3422 callback(prefs); |
3416 }.bind(this)); | 3423 }.bind(this)); |
3417 }; | 3424 }; |
3418 })(); | 3425 })(); |
OLD | NEW |