OLD | NEW |
---|---|
(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 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ | |
6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ | |
7 | |
8 #include "components/ntp_tiles/ntp_tile.h" | |
9 #include "components/ntp_tiles/tile_visual_type.h" | |
10 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" | |
11 #import "ios/chrome/browser/ui/url_loader.h" | |
12 | |
13 // Commands relating to the Google Landing. | |
14 // TODO(crbug.com/694750): This commands will evolve over time and move | |
15 // into different command protocols. | |
16 @protocol GoogleLandingCommands | |
17 | |
18 // Removes a blacklisted URL in both |_mostVisitedData|. | |
19 - (void)removeBlacklistedURL:(const GURL&)url; | |
20 | |
21 // Adds URL to the blacklist in both |_mostVisitedData|. | |
22 - (void)addBlacklistedURL:(const GURL&)url; | |
23 | |
24 // Logs a histogram due to a Most Visited item being opened. | |
25 - (void)logMostVisitedClick:(const NSUInteger)visitedIndex | |
26 tileType:(ntp_tiles::TileVisualType)tileType; | |
27 | |
28 // Called when a what's new promo is viewed. | |
29 - (void)promoViewed; | |
30 | |
31 // Called when a what's new promo is tapped. | |
32 - (void)promoTapped; | |
33 | |
34 // |YES| if the google landing toolbar can show the forward arrow. | |
35 - (BOOL)canGoForward; | |
marq (ping after 24h)
2017/04/20 13:17:14
Our intent elsewhere has been that dispatched comm
justincohen
2017/04/20 21:28:31
Removed this file for now, since it will break the
| |
36 | |
37 // |YES| if the google landing toolbar can show the back arrow. | |
38 - (BOOL)canGoBack; | |
39 | |
40 @end | |
41 | |
42 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ | |
OLD | NEW |