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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/constants.js
diff --git a/ui/file_manager/file_manager/foreground/js/constants.js b/ui/file_manager/file_manager/foreground/js/constants.js
index cec18d1b3cbeeeb09579e182e35ea71ec80ff429..e094559e4e28bee55408420bf9b8389ace85a99b 100644
--- a/ui/file_manager/file_manager/foreground/js/constants.js
+++ b/ui/file_manager/file_manager/foreground/js/constants.js
@@ -9,6 +9,11 @@
var constants = {};
/**
+ * @const {!Array<string>}
+ */
+constants.ACTIONS_MODEL_METADATA_PREFETCH_PROPERTY_NAMES = ['hosted', 'pinned'];
+
+/**
* The list of executable file extensions.
*
* @const
@@ -22,3 +27,28 @@ constants.EXECUTABLE_EXTENSIONS = Object.freeze([
'.jar',
'.msi',
]);
+
+/**
+ * These metadata is expected to be cached to accelerate computeAdditional.
+ * See: crbug.com/458915.
+ * @const {!Array<string>}
+ */
+constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES = [
+ 'availableOffline',
+ 'contentMimeType',
+];
+
+/**
+ * Metadata property names used by FileTable and FileGrid.
+ * These metadata is expected to be cached.
+ * @const {!Array<string>}
+ */
+constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES = [
+ 'availableOffline',
+ 'contentMimeType',
+ 'customIconUrl',
+ 'hosted',
+ 'modificationTime',
+ 'shared',
+ 'size',
+];

Powered by Google App Engine
This is Rietveld 408576698