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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/constants.js

Issue 2822633004: Compile more targets in file_manager in gyp v2. (Closed)
Patch Set: git cl format --js Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 * Namespace for common constnats used in Files app. 6 * Namespace for common constnats used in Files app.
7 * @namespace 7 * @namespace
8 */ 8 */
9 var constants = {}; 9 var constants = {};
10 10
11 /** 11 /**
12 * @const {!Array<string>}
13 */
14 constants.ACTIONS_MODEL_METADATA_PREFETCH_PROPERTY_NAMES = ['hosted', 'pinned'];
15
16 /**
12 * The list of executable file extensions. 17 * The list of executable file extensions.
13 * 18 *
14 * @const 19 * @const
15 * @type {Array<string>} 20 * @type {Array<string>}
16 */ 21 */
17 constants.EXECUTABLE_EXTENSIONS = Object.freeze([ 22 constants.EXECUTABLE_EXTENSIONS = Object.freeze([
18 '.exe', 23 '.exe',
19 '.lnk', 24 '.lnk',
20 '.deb', 25 '.deb',
21 '.dmg', 26 '.dmg',
22 '.jar', 27 '.jar',
23 '.msi', 28 '.msi',
24 ]); 29 ]);
30
31 /**
32 * These metadata is expected to be cached to accelerate computeAdditional.
33 * See: crbug.com/458915.
34 * @const {!Array<string>}
35 */
36 constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES = [
37 'availableOffline',
38 'contentMimeType',
39 ];
40
41 /**
42 * Metadata property names used by FileTable and FileGrid.
43 * These metadata is expected to be cached.
44 * @const {!Array<string>}
45 */
46 constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES = [
47 'availableOffline',
48 'contentMimeType',
49 'customIconUrl',
50 'hosted',
51 'modificationTime',
52 'shared',
53 'size',
54 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698