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

Unified Diff: ui/file_manager/file_manager/foreground/js/directory_contents.js

Issue 2640673002: (WIP) Use generator to generate externs for chrome.fileManagerPrivate API.
Patch Set: Compile passes Created 3 years, 11 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/directory_contents.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_contents.js b/ui/file_manager/file_manager/foreground/js/directory_contents.js
index b1236a974937a5c31e38da49000467a240658a20..af84cabad1a6d911ce05f1e828a1367aee98c655 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_contents.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -257,7 +257,7 @@ LocalSearchContentScanner.prototype.scan = function(
/**
* Scanner of the entries for the metadata search on Drive File System.
- * @param {!DriveMetadataSearchContentScanner.SearchType} searchType The option
+ * @param {chrome.fileManagerPrivate.SearchType} searchType The option
* of the search.
* @constructor
* @extends {ContentScanner}
@@ -274,18 +274,6 @@ DriveMetadataSearchContentScanner.prototype.__proto__ =
ContentScanner.prototype;
/**
- * The search types on the Drive File System.
- * @enum {string}
- */
-DriveMetadataSearchContentScanner.SearchType = {
- SEARCH_ALL: 'ALL',
- SEARCH_SHARED_WITH_ME: 'SHARED_WITH_ME',
- SEARCH_RECENT_FILES: 'EXCLUDE_DIRECTORIES',
- SEARCH_OFFLINE: 'OFFLINE'
-};
-Object.freeze(DriveMetadataSearchContentScanner.SearchType);
-
-/**
* Starts to metadata-search on Drive File System.
* @override
*/
@@ -908,7 +896,7 @@ DirectoryContents.createForLocalSearch = function(
* @param {FileListContext} context File list context.
* @param {!FakeEntry} fakeDirectoryEntry Fake directory entry representing the
* set of result entries. This serves as a top directory for the search.
- * @param {!DriveMetadataSearchContentScanner.SearchType} searchType The type of
+ * @param {chrome.fileManagerPrivate.SearchType} searchType The type of
* the search. The scanner will restricts the entries based on the given
* type.
* @return {DirectoryContents} Created DirectoryContents instance.

Powered by Google App Engine
This is Rietveld 408576698