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

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

Issue 2685863002: NTP: Rename mojo methods, fixing a TODO (Closed)
Patch Set: 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 Instant { 20 interface Instant {
21 // Tells InstantExtended whether the embedded search API is supported. 21 // Tells InstantExtended whether the embedded search API is supported.
22 // See http://dev.chromium.org/embeddedsearch 22 // See http://dev.chromium.org/embeddedsearch
23 InstantSupportDetermined(int32 page_seq_no, bool result); 23 InstantSupportDetermined(int32 page_seq_no, bool result);
24 24
25 // Tells InstantExtended to set the omnibox focus state. 25 // Tells InstantExtended to set the omnibox focus state.
26 FocusOmnibox(int32 page_seq_no, OmniboxFocusState state); 26 FocusOmnibox(int32 page_seq_no, OmniboxFocusState state);
27 27
28 // TODO(treib): Remove the SearchBox prefix from these three methods.
29 // Tells InstantExtended to delete a most visited item. 28 // Tells InstantExtended to delete a most visited item.
30 SearchBoxDeleteMostVisitedItem(int32 page_seq_no, url.mojom.Url url); 29 DeleteMostVisitedItem(int32 page_seq_no, url.mojom.Url url);
31 30
32 // Tells InstantExtended to undo all most visited item deletions. 31 // Tells InstantExtended to undo all most visited item deletions.
33 SearchBoxUndoAllMostVisitedDeletions(int32 page_seq_no); 32 UndoAllMostVisitedDeletions(int32 page_seq_no);
34 33
35 // Tells InstantExtended to undo one most visited item deletion. 34 // Tells InstantExtended to undo one most visited item deletion.
36 SearchBoxUndoMostVisitedDeletion(int32 page_seq_no, url.mojom.Url url); 35 UndoMostVisitedDeletion(int32 page_seq_no, url.mojom.Url url);
37 36
38 // Logs events from InstantExtended New Tab Pages. 37 // Logs events from InstantExtended New Tab Pages.
39 LogEvent(int32 page_seq_no, 38 LogEvent(int32 page_seq_no,
40 NTPLoggingEventType event, 39 NTPLoggingEventType event,
41 mojo.common.mojom.TimeDelta time); 40 mojo.common.mojom.TimeDelta time);
42 41
43 // Logs an impression on one of the Most Visited tile on the InstantExtended 42 // Logs an impression on one of the Most Visited tile on the InstantExtended
44 // New Tab Page. 43 // New Tab Page.
45 LogMostVisitedImpression(int32 page_seq_no, int32 position, 44 LogMostVisitedImpression(int32 page_seq_no, int32 position,
46 NTPTileSource tile_source); 45 NTPTileSource tile_source);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Submit(mojo.common.mojom.String16 value, 94 Submit(mojo.common.mojom.String16 value,
96 EmbeddedSearchRequestParams params); 95 EmbeddedSearchRequestParams params);
97 96
98 ThemeChanged(ThemeBackgroundInfo value); 97 ThemeChanged(ThemeBackgroundInfo value);
99 98
100 HistorySyncCheckResult(bool sync_history); 99 HistorySyncCheckResult(bool sync_history);
101 100
102 ChromeIdentityCheckResult(mojo.common.mojom.String16 identity, 101 ChromeIdentityCheckResult(mojo.common.mojom.String16 identity,
103 bool identity_match); 102 bool identity_match);
104 }; 103 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router_unittest.cc ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698