Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox.mojom

Issue 222543004: Makes chrome://omnibox use mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 module chrome {
darin (slow to review) 2014/04/07 14:35:26 nit: add a license header
sky 2014/04/07 14:53:23 Done.
2
3 // The structures here roughly mirror those from autocomplete.
4
5 struct AutocompleteAdditionalInfo {
6 string key;
7 string value;
8 };
9
10 struct AutocompleteMatchMojo {
11 string provider_name;
12 // Only meaningful if |provider_name| is valid.
13 bool provider_done;
14 int32 relevance;
15 bool deletable;
16 string fill_into_edit;
17 string inline_autocompletion;
18 string destination_url;
19 string contents;
20 string description;
21 int32 transition;
22 bool is_history_what_you_typed_match;
23 bool allowed_to_be_default_match;
24 string type;
25 string associated_keyword;
26 string keyword;
27 bool starred;
28 int32 duplicates;
29 bool from_previous;
30 AutocompleteAdditionalInfo[] additional_info;
31 };
32
33 struct AutocompleteResultsForProviderMojo {
34 string provider_name;
35 AutocompleteMatchMojo[] results;
36 };
37
38 struct OmniboxResultMojo {
39 bool done;
40 // Time delta since the request was started, in milliseconds.
41 int32 time_since_omnibox_started_ms;
42 string host;
43 bool is_typed_host;
44 AutocompleteMatchMojo[] combined_results;
45 AutocompleteResultsForProviderMojo[] results_by_provider;
46 };
47
48 [Peer=OmniboxPage]
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 };
56
57 [Peer=OmniboxUIHandlerMojo]
58 interface OmniboxPage {
59 HandleNewAutocompleteResult(OmniboxResultMojo result);
60 };
61
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698