| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Called from the main frame when unloading. | 8 * Called from the main frame when unloading. |
| 9 * @param {boolean=} opt_exiting True if the app is exiting. | 9 * @param {boolean=} opt_exiting True if the app is exiting. |
| 10 */ | 10 */ |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 } else { | 863 } else { |
| 864 document.title = ''; | 864 document.title = ''; |
| 865 } | 865 } |
| 866 this.filenameEdit_.disabled = true; | 866 this.filenameEdit_.disabled = true; |
| 867 this.filenameEdit_.value = | 867 this.filenameEdit_.value = |
| 868 strf('GALLERY_ITEMS_SELECTED', numSelectedItems); | 868 strf('GALLERY_ITEMS_SELECTED', numSelectedItems); |
| 869 this.shareButton_.hidden = true; | 869 this.shareButton_.hidden = true; |
| 870 } | 870 } |
| 871 } else { | 871 } else { |
| 872 document.title = ''; | 872 document.title = ''; |
| 873 this.filenameEdit_.disabled = true; |
| 873 this.filenameEdit_.value = ''; | 874 this.filenameEdit_.value = ''; |
| 874 this.shareButton_.hidden = true; | 875 this.shareButton_.hidden = true; |
| 875 } | 876 } |
| 876 | 877 |
| 877 util.updateAppState( | 878 util.updateAppState( |
| 878 null, // Keep the current directory. | 879 null, // Keep the current directory. |
| 879 selectedEntryURL, // Update the selection. | 880 selectedEntryURL, // Update the selection. |
| 880 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')}); | 881 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')}); |
| 881 }; | 882 }; |
| 882 | 883 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 window.loadTimeData.data = backgroundComponents.stringData; | 1016 window.loadTimeData.data = backgroundComponents.stringData; |
| 1016 gallery = new Gallery(backgroundComponents.volumeManager); | 1017 gallery = new Gallery(backgroundComponents.volumeManager); |
| 1017 }; | 1018 }; |
| 1018 | 1019 |
| 1019 /** | 1020 /** |
| 1020 * Loads entries. | 1021 * Loads entries. |
| 1021 */ | 1022 */ |
| 1022 window.loadEntries = function(entries, selectedEntries) { | 1023 window.loadEntries = function(entries, selectedEntries) { |
| 1023 gallery.load(entries, selectedEntries); | 1024 gallery.load(entries, selectedEntries); |
| 1024 }; | 1025 }; |
| OLD | NEW |