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

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 23676006: Files.app: Let the thumbnail images in the preview panels managed by PreviewPanel class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a variable name. Created 7 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 | Annotate | Revision Log
OLDNEW
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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 847
848 var fullPage = this.dialogType == DialogType.FULL_PAGE; 848 var fullPage = this.dialogType == DialogType.FULL_PAGE;
849 FileTable.decorate(this.table_, this.metadataCache_, fullPage); 849 FileTable.decorate(this.table_, this.metadataCache_, fullPage);
850 FileGrid.decorate(this.grid_, this.metadataCache_); 850 FileGrid.decorate(this.grid_, this.metadataCache_);
851 851
852 this.previewPanel_ = new PreviewPanel( 852 this.previewPanel_ = new PreviewPanel(
853 dom.querySelector('.preview-panel'), 853 dom.querySelector('.preview-panel'),
854 DialogType.isOpenDialog(this.dialogType) ? 854 DialogType.isOpenDialog(this.dialogType) ?
855 PreviewPanel.VisibilityType.ALWAYS_VISIBLE : 855 PreviewPanel.VisibilityType.ALWAYS_VISIBLE :
856 PreviewPanel.VisibilityType.AUTO, 856 PreviewPanel.VisibilityType.AUTO,
857 this.getCurrentDirectory()); 857 this.getCurrentDirectory(),
858 this.metadataCache_);
858 this.previewPanel_.addEventListener( 859 this.previewPanel_.addEventListener(
859 PreviewPanel.Event.VISIBILITY_CHANGE, 860 PreviewPanel.Event.VISIBILITY_CHANGE,
860 this.onPreviewPanelVisibilityChange_.bind(this)); 861 this.onPreviewPanelVisibilityChange_.bind(this));
861 this.previewPanel_.initialize(); 862 this.previewPanel_.initialize();
862 863
863 this.document_.addEventListener('keydown', this.onKeyDown_.bind(this)); 864 this.document_.addEventListener('keydown', this.onKeyDown_.bind(this));
864 this.document_.addEventListener('keyup', this.onKeyUp_.bind(this)); 865 this.document_.addEventListener('keyup', this.onKeyUp_.bind(this));
865 866
866 // This capturing event is only used to distinguish focusing using 867 // This capturing event is only used to distinguish focusing using
867 // keyboard from focusing using mouse. 868 // keyboard from focusing using mouse.
(...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 */ 3939 */
3939 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { 3940 FileManager.prototype.setCtrlKeyPressed_ = function(flag) {
3940 this.ctrlKeyPressed_ = flag; 3941 this.ctrlKeyPressed_ = flag;
3941 // Before the DOM is constructed, the key event can be handled. 3942 // Before the DOM is constructed, the key event can be handled.
3942 var cacheClearCommand = 3943 var cacheClearCommand =
3943 this.document_.querySelector('#drive-clear-local-cache'); 3944 this.document_.querySelector('#drive-clear-local-cache');
3944 if (cacheClearCommand) 3945 if (cacheClearCommand)
3945 cacheClearCommand.canExecuteChange(); 3946 cacheClearCommand.canExecuteChange();
3946 }; 3947 };
3947 })(); 3948 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698