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 {
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 AutocompleteAdditionalInfo[] additional_info;
35 struct AutocompleteResultsForProviderMojo {
37 AutocompleteMatchMojo[] results;
40 struct OmniboxResultMojo {
42 // Time delta since the request was started, in milliseconds.
43 int32 time_since_omnibox_started_ms;
46 AutocompleteMatchMojo[] combined_results;
47 AutocompleteResultsForProviderMojo[] results_by_provider;
51 interface OmniboxUIHandlerMojo {
52 StartOmniboxQuery(string input_string,
53 int32 cursor_position,
54 bool prevent_inline_autocomplete,
56 int32 page_classification);
59 interface OmniboxPage {
60 HandleNewAutocompleteResult(OmniboxResultMojo result);