| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // TODO(crbug.com/694750): Remove these two when the types below are changed. | 10 // TODO(crbug.com/694750): Remove these two when the types below are changed. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // Sets the icon of a what's new promo. | 37 // Sets the icon of a what's new promo. |
| 38 // TODO(crbug.com/694750): This should not be WhatsNewIcon. | 38 // TODO(crbug.com/694750): This should not be WhatsNewIcon. |
| 39 - (void)setPromoIcon:(WhatsNewIcon)promoIcon; | 39 - (void)setPromoIcon:(WhatsNewIcon)promoIcon; |
| 40 | 40 |
| 41 // |YES| if a what's new promo can be displayed. | 41 // |YES| if a what's new promo can be displayed. |
| 42 - (void)setPromoCanShow:(BOOL)promoCanShow; | 42 - (void)setPromoCanShow:(BOOL)promoCanShow; |
| 43 | 43 |
| 44 // The number of tabs to show in the google landing fake toolbar. | 44 // The number of tabs to show in the google landing fake toolbar. |
| 45 - (void)setTabCount:(int)tabCount; | 45 - (void)setTabCount:(int)tabCount; |
| 46 | 46 |
| 47 // |YES| if the google landing toolbar can show the forward arrow. |
| 48 - (void)setCanGoForward:(BOOL)canGoForward; |
| 49 |
| 50 // |YES| if the google landing toolbar can show the back arrow. |
| 51 - (void)setCanGoBack:(BOOL)canGoBack; |
| 52 |
| 47 // TODO(crbug.com/694750): This should be replaced with consumer suitable data | 53 // TODO(crbug.com/694750): This should be replaced with consumer suitable data |
| 48 // type property. | 54 // type property. |
| 49 // Tells the consumer to that most visited data updated. | 55 // Tells the consumer to that most visited data updated. |
| 50 - (void)mostVisitedDataUpdated; | 56 - (void)mostVisitedDataUpdated; |
| 51 | 57 |
| 52 // Tells the consumer a most visited icon was updated. | 58 // Tells the consumer a most visited icon was updated. |
| 53 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index; | 59 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index; |
| 54 | 60 |
| 55 // TODO(crbug.com/694750): These two calls can be made with dispatcher instead. | 61 // TODO(crbug.com/694750): These two calls can be made with dispatcher instead. |
| 56 // The location bar has lost focus. | 62 // The location bar has lost focus. |
| 57 - (void)locationBarResignsFirstResponder; | 63 - (void)locationBarResignsFirstResponder; |
| 58 | 64 |
| 59 // Tell location bar has taken focus. | 65 // Tell location bar has taken focus. |
| 60 - (void)locationBarBecomesFirstResponder; | 66 - (void)locationBarBecomesFirstResponder; |
| 61 | 67 |
| 62 // TODO(crbug.com/694750): This call will be removed once dispatching is | 68 // TODO(crbug.com/694750): This call will be removed once dispatching is |
| 63 // available. | 69 // available. |
| 64 // Asks the consumer to execute a chrome command. | 70 // Asks the consumer to execute a chrome command. |
| 65 - (void)chromeExecuteCommand:(id)sender; | 71 - (void)chromeExecuteCommand:(id)sender; |
| 66 | 72 |
| 67 @end | 73 @end |
| 68 | 74 |
| 69 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ | 75 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ |
| OLD | NEW |