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 allowed_to_be_default_match;
26 string? associated_keyword;
31 array<AutocompleteAdditionalInfo> additional_info;
34 struct AutocompleteResultsForProviderMojo {
36 array<AutocompleteMatchMojo> results;
39 struct OmniboxResultMojo {
41 // Time delta since the request was started, in milliseconds.
42 int32 time_since_omnibox_started_ms;
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,
54 int32 page_classification,
58 interface OmniboxPage {
59 HandleNewAutocompleteResult(OmniboxResultMojo result);