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 {
12 struct AutocompleteMatchMojo {
13 string? provider_name;
14 // Only meaningful if |provider_name| is valid.
18 string fill_into_edit;
19 string inline_autocompletion;
20 string destination_url;
24 bool is_history_what_you_typed_match;
25 bool allowed_to_be_default_match;
27 string? associated_keyword;
32 array<AutocompleteAdditionalInfo> additional_info;
35 struct AutocompleteResultsForProviderMojo {
37 array<AutocompleteMatchMojo> results;
40 struct OmniboxResultMojo {
42 // Time delta since the request was started, in milliseconds.
43 int32 time_since_omnibox_started_ms;
46 array<AutocompleteMatchMojo> combined_results;
47 array<AutocompleteResultsForProviderMojo> results_by_provider;
50 interface OmniboxUIHandlerMojo {
51 StartOmniboxQuery(string input_string,
52 int32 cursor_position,
53 bool prevent_inline_autocomplete,
55 int32 page_classification,
59 interface OmniboxPage {
60 HandleNewAutocompleteResult(OmniboxResultMojo result);