Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 550863003: Rename fileBrowserPrivate to fileManagerPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/file_manager/gallery/js/background.js ('k') | ui/file_manager/gallery/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/background.js ('k') | ui/file_manager/gallery/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698