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

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

Issue 2717653002: Compile more Gallery targets in gyp v2. (Closed)
Patch Set: . Created 3 years, 9 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
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 /** 5 /**
6 * Overrided metadata worker's path. 6 * Overrided metadata worker's path.
7 * @type {string} 7 * @type {string}
8 */ 8 */
9 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; 9 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js';
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 this.onFilenameEditBlur_.bind(this)); 101 this.onFilenameEditBlur_.bind(this));
102 this.filenameEdit_.addEventListener('focus', 102 this.filenameEdit_.addEventListener('focus',
103 this.onFilenameFocus_.bind(this)); 103 this.onFilenameFocus_.bind(this));
104 this.filenameEdit_.addEventListener('input', 104 this.filenameEdit_.addEventListener('input',
105 this.resizeRenameField_.bind(this)); 105 this.resizeRenameField_.bind(this));
106 this.filenameEdit_.addEventListener('keydown', 106 this.filenameEdit_.addEventListener('keydown',
107 this.onFilenameEditKeydown_.bind(this)); 107 this.onFilenameEditKeydown_.bind(this));
108 108
109 var buttonSpacer = queryRequiredElement('.button-spacer', this.topToolbar_); 109 var buttonSpacer = queryRequiredElement('.button-spacer', this.topToolbar_);
110 110
111 this.prompt_ = new ImageEditor.Prompt(this.container_, strf); 111 this.prompt_ = new ImageEditorPrompt(this.container_, strf);
112 112
113 this.errorBanner_ = new ErrorBanner(this.container_); 113 this.errorBanner_ = new ErrorBanner(this.container_);
114 114
115 /** 115 /**
116 * @private {!HTMLElement} 116 * @private {!HTMLElement}
117 * @const 117 * @const
118 */ 118 */
119 this.modeSwitchButton_ = queryRequiredElement('button.mode', 119 this.modeSwitchButton_ = queryRequiredElement('button.mode',
120 this.topToolbar_); 120 this.topToolbar_);
121 GalleryUtil.decorateMouseFocusHandling(this.modeSwitchButton_); 121 GalleryUtil.decorateMouseFocusHandling(this.modeSwitchButton_);
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 */ 1043 */
1044 var initializePromise = 1044 var initializePromise =
1045 Promise.all([loadTimeDataPromise, volumeManagerPromise]). 1045 Promise.all([loadTimeDataPromise, volumeManagerPromise]).
1046 then(function(args) { 1046 then(function(args) {
1047 var volumeManager = args[1]; 1047 var volumeManager = args[1];
1048 gallery = new Gallery(volumeManager); 1048 gallery = new Gallery(volumeManager);
1049 }); 1049 });
1050 1050
1051 // Loads entries. 1051 // Loads entries.
1052 initializePromise.then(reload); 1052 initializePromise.then(reload);
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/compiled_resources2.gyp ('k') | ui/file_manager/gallery/js/gallery_scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698