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

Side by Side Diff: chrome/common/instant.mojom

Issue 2086223002: Convert instant search messages to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 3 years, 11 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
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/instant.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 module chrome.mojom;
6
7 import "mojo/common/string16.mojom";
8 import "mojo/common/time.mojom";
9 import "url/mojo/url.mojom";
10
11 [Native]
12 enum NTPLoggingEventType;
13
14 [Native]
15 enum OmniboxFocusState;
16
17 [Native]
18 enum NTPTileSource;
19
20 interface Instant {
21 // Tells InstantExtended whether the embedded search API is supported.
22 // See http://dev.chromium.org/embeddedsearch
23 InstantSupportDetermined(int32 page_seq_no, bool result);
24
25 // Tells InstantExtended to set the omnibox focus state.
26 FocusOmnibox(int32 page_seq_no, OmniboxFocusState state);
27
28 // TODO(treib): Remove the SearchBox prefix from these three methods.
29 // Tells InstantExtended to delete a most visited item.
30 SearchBoxDeleteMostVisitedItem(int32 page_seq_no, url.mojom.Url url);
31
32 // Tells InstantExtended to undo all most visited item deletions.
33 SearchBoxUndoAllMostVisitedDeletions(int32 page_seq_no);
34
35 // Tells InstantExtended to undo one most visited item deletion.
36 SearchBoxUndoMostVisitedDeletion(int32 page_seq_no, url.mojom.Url url);
37
38 // Logs events from InstantExtended New Tab Pages.
39 LogEvent(int32 page_seq_no,
40 NTPLoggingEventType event,
41 mojo.common.mojom.TimeDelta time);
42
43 // Logs an impression on one of the Most Visited tile on the InstantExtended
44 // New Tab Page.
45 LogMostVisitedImpression(int32 page_seq_no, int32 position,
46 NTPTileSource tile_source);
47
48 // Logs a navigation on one of the Most Visited tile on the InstantExtended
49 // New Tab Page.
50 LogMostVisitedNavigation(int32 page_seq_no, int32 position,
51 NTPTileSource tile_source);
52
53 // Tells InstantExtended to paste text into the omnibox. If text is empty,
54 // the clipboard contents will be pasted. This causes the omnibox dropdown to
55 // open.
56 PasteAndOpenDropdown(int32 page_seq_no,
57 mojo.common.mojom.String16 text_to_be_pasted);
58
59 // The Instant page asks whether the user syncs its history.
60 HistorySyncCheck(int32 page_seq_no);
61
62 // The Instant page asks for Chrome identity check against |identity|.
63 ChromeIdentityCheck(int32 page_seq_no, mojo.common.mojom.String16 identity);
64 };
65
66 [Native]
67 enum OmniboxFocusChangeReason;
68
69 [Native]
70 struct InstantMostVisitedItem;
71
72 [Native]
73 struct InstantSuggestion;
74
75 [Native]
76 struct EmbeddedSearchRequestParams;
77
78 [Native]
79 struct ThemeBackgroundInfo;
80
81 interface SearchBox {
82 SetPageSequenceNumber(int32 page_seq_no);
83
84 DetermineIfPageSupportsInstant();
85
86 FocusChanged(OmniboxFocusState new_focus_state,
87 OmniboxFocusChangeReason reason);
88
89 MostVisitedChanged(array<InstantMostVisitedItem> items);
90
91 SetInputInProgress(bool input_in_progress);
92
93 SetSuggestionToPrefetch(InstantSuggestion suggestion);
94
95 Submit(mojo.common.mojom.String16 value,
96 EmbeddedSearchRequestParams params);
97
98 ThemeChanged(ThemeBackgroundInfo value);
99
100 HistorySyncCheckResult(bool sync_history);
101
102 ChromeIdentityCheckResult(mojo.common.mojom.String16 identity,
103 bool identity_match);
104 };
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/instant.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698