Commit 9f220c34 authored by Austin Tankiang's avatar Austin Tankiang Committed by Commit Bot

Add mojo changes supporting QuickAccess API to chromium

Bug: 993678
Change-Id: Idc11c9b6a9f87d6006dcad4f53a2dac23ce437cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1757404Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Commit-Queue: Austin Tankiang <austinct@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689350}
parent 483de1b0
......@@ -167,7 +167,7 @@ struct DriveError {
mojo_base.mojom.FilePath path;
};
// Next MinVersion: 2
// Next MinVersion: 3
struct FileMetadata {
[Extensible] enum Type {
// A regular file.
......@@ -211,6 +211,9 @@ struct FileMetadata {
Capabilities capabilities;
[MinVersion=1] FolderFeature? folder_feature;
// Only present in QuickAccess queries.
[MinVersion=2] QuickAccess? quick_access;
};
struct ImageMetadata {
......@@ -245,6 +248,11 @@ struct FolderFeature {
bool is_external_media = false;
};
struct QuickAccess {
// A [0, 1] score with the probability that a user wants this document next.
double score;
};
struct ItemEvent {
enum State {
kQueued,
......@@ -287,6 +295,7 @@ struct FileChange {
};
// Definition of the search request sent to DriveFS.
// Next MinVersion: 2
struct QueryParameters {
// Where this request should go to.
enum QuerySource {
......@@ -333,6 +342,20 @@ struct QueryParameters {
// How to sort the returned results.
SortField sort_field = kNone;
SortDirection sort_direction = kAscending;
// The kind of query to perform.
[MinVersion=1] QueryKind query_kind = kRegular;
};
// TODO(crbug.com/896777): Put this inside QueryParameters once linked bug is
// fixed.
enum QueryKind {
// Regular search.
kRegular = 0,
// QuickAccess query from the ItemSuggest API. Only page_size is used in a
// QuickAccess query.
kQuickAccess = 1,
};
// Represents a search request in progress.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment