Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / webui / omnibox / omnibox.mojom
blob6cad6f2e12364d96b1b6e4f1a1f67501c91fc94b
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
3 // found in the LICENSE file.
5 // The structures here roughly mirror those from autocomplete.
7 struct AutocompleteAdditionalInfo {
8   string key;
9   string value;
12 struct AutocompleteMatchMojo {
13   string? provider_name;
14   // Only meaningful if |provider_name| is valid.
15   bool provider_done;
16   int32 relevance;
17   bool deletable;
18   string fill_into_edit;
19   string inline_autocompletion;
20   string destination_url;
21   string contents;
22   string description;
23   int32 transition;
24   bool allowed_to_be_default_match;
25   string type;
26   string? associated_keyword;
27   string keyword;
28   bool starred;
29   int32 duplicates;
30   bool from_previous;
31   array<AutocompleteAdditionalInfo> additional_info;
34 struct AutocompleteResultsForProviderMojo {
35   string provider_name;
36   array<AutocompleteMatchMojo> results;
39 struct OmniboxResultMojo {
40   bool done;
41   // Time delta since the request was started, in milliseconds.
42   int32 time_since_omnibox_started_ms;
43   string host;
44   bool is_typed_host;
45   array<AutocompleteMatchMojo> combined_results;
46   array<AutocompleteResultsForProviderMojo> results_by_provider;
49 interface OmniboxUIHandlerMojo {
50   StartOmniboxQuery(string input_string,
51                     int32 cursor_position,
52                     bool prevent_inline_autocomplete,
53                     bool prefer_keyword,
54                     int32 page_classification,
55                     OmniboxPage page);
58 interface OmniboxPage {
59   HandleNewAutocompleteResult(OmniboxResultMojo result);