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

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

Issue 2688453002: NTP: simplify mojo connection setup (Closed)
Patch Set: Restore IsRenderedInInstantProcess check Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module chrome.mojom; 5 module chrome.mojom;
6 6
7 import "mojo/common/string16.mojom"; 7 import "mojo/common/string16.mojom";
8 import "mojo/common/time.mojom"; 8 import "mojo/common/time.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
11 [Native] 11 [Native]
12 enum NTPLoggingEventType; 12 enum NTPLoggingEventType;
13 13
14 [Native] 14 [Native]
15 enum OmniboxFocusState; 15 enum OmniboxFocusState;
16 16
17 [Native] 17 [Native]
18 enum NTPTileSource; 18 enum NTPTileSource;
19 19
20 // Interface used to connect to the new tab page (NTP) interface. This is a
21 // separate interface such that a reverse connection (|search_box| below) can be
22 // passed when connecting.
dcheng 2017/02/08 09:01:39 Thanks for adding these comments. Mind describing
tibell 2017/02/09 03:35:28 I've added some more comments to express my curren
23 interface NTPConnector {
Marc Treib 2017/02/08 10:00:36 Per my other comment: I don't think "NTP" is the r
tibell 2017/02/09 03:35:28 Done.
24 // Connect to the interface. |instant| is the connection which the client will
25 // use to query the NTP interface. |search_box| is the connection used by the
26 // NTP interface implementation to push browser state updates to the client.
27 Connect(associated Instant& instant, associated SearchBox search_box);
28 };
29
30 // TODO(tibell): Rename this to NTP.
20 interface Instant { 31 interface Instant {
21 // Tells InstantExtended whether the embedded search API is supported. 32 // Tells InstantExtended whether the embedded search API is supported.
22 // See http://dev.chromium.org/embeddedsearch 33 // See http://dev.chromium.org/embeddedsearch
23 InstantSupportDetermined(int32 page_seq_no, bool result); 34 InstantSupportDetermined(int32 page_seq_no, bool result);
24 35
25 // Tells InstantExtended to set the omnibox focus state. 36 // Tells InstantExtended to set the omnibox focus state.
26 FocusOmnibox(int32 page_seq_no, OmniboxFocusState state); 37 FocusOmnibox(int32 page_seq_no, OmniboxFocusState state);
27 38
28 // TODO(treib): Remove the SearchBox prefix from these three methods. 39 // TODO(treib): Remove the SearchBox prefix from these three methods.
29 // Tells InstantExtended to delete a most visited item. 40 // Tells InstantExtended to delete a most visited item.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Submit(mojo.common.mojom.String16 value, 106 Submit(mojo.common.mojom.String16 value,
96 EmbeddedSearchRequestParams params); 107 EmbeddedSearchRequestParams params);
97 108
98 ThemeChanged(ThemeBackgroundInfo value); 109 ThemeChanged(ThemeBackgroundInfo value);
99 110
100 HistorySyncCheckResult(bool sync_history); 111 HistorySyncCheckResult(bool sync_history);
101 112
102 ChromeIdentityCheckResult(mojo.common.mojom.String16 identity, 113 ChromeIdentityCheckResult(mojo.common.mojom.String16 identity,
103 bool identity_match); 114 bool identity_match);
104 }; 115 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698