Lines Matching defs:Gallery
11 function unload(opt_exiting) { Gallery.instance.onUnload(opt_exiting); }
21 * Data model for gallery.
69 * @param {Gallery.Item} item Original gallery item.
117 Gallery.METADATA_TYPE,
122 var anotherItem = new Gallery.Item(
142 * @param {Gallery.Item} currentSelectedItem Current selected item.
182 * Gallery for viewing and editing image files.
188 function Gallery(volumeManager) {
206 this.container_ = document.querySelector('.gallery');
231 * Gallery extends cr.EventTarget.
233 Gallery.prototype.__proto__ = cr.EventTarget.prototype;
240 Gallery.FADE_TIMEOUT = 3000;
247 Gallery.FIRST_FADE_TIMEOUT = 1000;
250 * Time until mosaic is initialized in the background. Used to make gallery
255 Gallery.MOSAIC_BACKGROUND_INIT_DELAY = 1000;
258 * Types of metadata Gallery uses (to query the metadata cache).
262 Gallery.METADATA_TYPE = 'thumbnail|filesystem|media|external';
268 Gallery.prototype.initListeners_ = function() {
273 this.container_, Gallery.FADE_TIMEOUT, this.hasActiveTool.bind(this));
289 * Closes gallery when a volume containing the selected item is unmounted.
293 Gallery.prototype.onExternallyUnmounted_ = function(event) {
304 * Unloads the Gallery.
307 Gallery.prototype.onUnload = function(exiting) {
319 Gallery.prototype.initDom_ = function() {
424 Gallery.prototype.initToolbarButton_ = function(className, title) {
436 Gallery.prototype.load = function(entries, selectedEntries) {
492 self.metadataCache_.get(entries, Gallery.METADATA_TYPE, fulfill);
504 items.push(new Gallery.Item(
532 self.context_.pageState.gallery === 'mosaic');
550 self.inactivityWatcher_.kick(Gallery.FIRST_FADE_TIMEOUT);
571 Gallery.prototype.onClose_ = function() {
579 Gallery.prototype.onMaximize_ = function() {
587 Gallery.prototype.onMinimize_ = function() {
595 Gallery.prototype.executeWhenReady = function(callback) {
602 Gallery.getFileManagerPrivate = function() {
609 Gallery.prototype.hasActiveTool = function() {
618 Gallery.prototype.onUserAction_ = function() {
628 Gallery.prototype.setCurrentMode_ = function(mode) {
630 console.error('Invalid Gallery mode');
644 Gallery.prototype.toggleMode_ = function(opt_callback, opt_event) {
695 Gallery.prototype.delete_ = function() {
719 // Prevent the Gallery from handling Esc and Enter.
747 * @return {Array.<Gallery.Item>} Current selection.
749 Gallery.prototype.getSelectedItems = function() {
757 Gallery.prototype.getSelectedEntries = function() {
764 * @return {?Gallery.Item} Current single selection.
766 Gallery.prototype.getSingleSelectedItem = function() {
779 Gallery.prototype.onSelection_ = function() {
787 Gallery.prototype.onSplice_ = function() {
796 Gallery.prototype.onContentChange_ = function(event) {
809 Gallery.prototype.onKeyDown_ = function(event) {
815 // The default handler would call history.back and close the Gallery.
843 Gallery.prototype.updateSelectionAndState_ = function() {
868 // If the Gallery was opened on search results the search query will not
870 // gallery in the curDirEntry directory.
890 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')});
897 Gallery.prototype.onFilenameFocus_ = function() {
911 Gallery.prototype.onFilenameEditBlur_ = function(event) {
946 Gallery.prototype.onFilenameEditKeydown_ = function() {
964 Gallery.prototype.isRenaming_ = function() {
972 Gallery.prototype.onContentClick_ = function() {
980 Gallery.prototype.onShareButtonClick_ = function() {
991 Gallery.prototype.updateThumbnails_ = function() {
1006 Gallery.prototype.updateButtons_ = function() {
1016 * Singleton gallery.
1017 * @type {Gallery}
1019 var gallery = null;
1027 gallery = new Gallery(backgroundComponents.volumeManager);
1036 gallery.load(entries, selectedEntries);