| 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 590 |
| 591 /** | 591 /** |
| 592 * Executes a function when the editor is done with the modifications. | 592 * Executes a function when the editor is done with the modifications. |
| 593 * @param {function} callback Function to execute. | 593 * @param {function} callback Function to execute. |
| 594 */ | 594 */ |
| 595 Gallery.prototype.executeWhenReady = function(callback) { | 595 Gallery.prototype.executeWhenReady = function(callback) { |
| 596 this.currentMode_.executeWhenReady(callback); | 596 this.currentMode_.executeWhenReady(callback); |
| 597 }; | 597 }; |
| 598 | 598 |
| 599 /** | 599 /** |
| 600 * @return {Object} File browser private API. | 600 * @return {Object} File manager private API. |
| 601 */ | 601 */ |
| 602 Gallery.getFileBrowserPrivate = function() { | 602 Gallery.getFileManagerPrivate = function() { |
| 603 return chrome.fileBrowserPrivate || window.top.chrome.fileBrowserPrivate; | 603 return chrome.fileManagerPrivate || window.top.chrome.fileManagerPrivate; |
| 604 }; | 604 }; |
| 605 | 605 |
| 606 /** | 606 /** |
| 607 * @return {boolean} True if some tool is currently active. | 607 * @return {boolean} True if some tool is currently active. |
| 608 */ | 608 */ |
| 609 Gallery.prototype.hasActiveTool = function() { | 609 Gallery.prototype.hasActiveTool = function() { |
| 610 return (this.currentMode_ && this.currentMode_.hasActiveTool()) || | 610 return (this.currentMode_ && this.currentMode_.hasActiveTool()) || |
| 611 this.isRenaming_(); | 611 this.isRenaming_(); |
| 612 }; | 612 }; |
| 613 | 613 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 window.loadTimeData.data = backgroundComponents.stringData; | 1025 window.loadTimeData.data = backgroundComponents.stringData; |
| 1026 gallery = new Gallery(backgroundComponents.volumeManager); | 1026 gallery = new Gallery(backgroundComponents.volumeManager); |
| 1027 }; | 1027 }; |
| 1028 | 1028 |
| 1029 /** | 1029 /** |
| 1030 * Loads entries. | 1030 * Loads entries. |
| 1031 */ | 1031 */ |
| 1032 window.loadEntries = function(entries, selectedEntries) { | 1032 window.loadEntries = function(entries, selectedEntries) { |
| 1033 gallery.load(entries, selectedEntries); | 1033 gallery.load(entries, selectedEntries); |
| 1034 }; | 1034 }; |
| OLD | NEW |