Chromium Code Reviews| Index: ios/chrome/browser/ui/ntp/google_landing_commands.h |
| diff --git a/ios/chrome/browser/ui/ntp/google_landing_commands.h b/ios/chrome/browser/ui/ntp/google_landing_commands.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4a5f400751f32f23b9e10d14b617c3daa38d42ed |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/ntp/google_landing_commands.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ |
| +#define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ |
| + |
| +#include "components/ntp_tiles/ntp_tile.h" |
| +#include "components/ntp_tiles/tile_visual_type.h" |
| +#import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" |
| +#import "ios/chrome/browser/ui/url_loader.h" |
| + |
| +// Commands relating to the Google Landing. |
| +// TODO(crbug.com/694750): This commands will evolve over time and move |
| +// into different command protocols. |
| +@protocol GoogleLandingCommands |
| + |
| +// Removes a blacklisted URL in both |_mostVisitedData|. |
| +- (void)removeBlacklistedURL:(const GURL&)url; |
| + |
| +// Adds URL to the blacklist in both |_mostVisitedData|. |
| +- (void)addBlacklistedURL:(const GURL&)url; |
| + |
| +// Logs a histogram due to a Most Visited item being opened. |
| +- (void)logMostVisitedClick:(const NSUInteger)visitedIndex |
| + tileType:(ntp_tiles::TileVisualType)tileType; |
| + |
| +// Called when a what's new promo is viewed. |
| +- (void)promoViewed; |
| + |
| +// Called when a what's new promo is tapped. |
| +- (void)promoTapped; |
| + |
| +// |YES| if the google landing toolbar can show the forward arrow. |
| +- (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
|
| + |
| +// |YES| if the google landing toolbar can show the back arrow. |
| +- (BOOL)canGoBack; |
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_COMMANDS_H_ |