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

Side by Side Diff: ios/chrome/browser/ui/ntp/google_landing_consumer.h

Issue 2833513002: Replace TabModel with WebStateList in GoogleLandingController. (Closed)
Patch Set: Fix gn Created 3 years, 8 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 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 23 matching lines...) Expand all
34 // Sets the text of a what's new promo. 34 // Sets the text of a what's new promo.
35 - (void)setPromoText:(NSString*)promoText; 35 - (void)setPromoText:(NSString*)promoText;
36 36
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.
45 - (void)setTabCount:(int)tabCount;
46
44 // TODO(crbug.com/694750): This should be replaced with consumer suitable data 47 // TODO(crbug.com/694750): This should be replaced with consumer suitable data
45 // type property. 48 // type property.
46 // Tells the consumer to that most visited data updated. 49 // Tells the consumer to that most visited data updated.
47 - (void)mostVisitedDataUpdated; 50 - (void)mostVisitedDataUpdated;
48 51
49 // Tells the consumer a most visited icon was updated. 52 // Tells the consumer a most visited icon was updated.
50 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index; 53 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index;
51 54
52 // TODO(crbug.com/694750): These two calls can be made with dispatcher instead. 55 // TODO(crbug.com/694750): These two calls can be made with dispatcher instead.
53 // The location bar has lost focus. 56 // The location bar has lost focus.
54 - (void)locationBarResignsFirstResponder; 57 - (void)locationBarResignsFirstResponder;
55 58
56 // Tell location bar has taken focus. 59 // Tell location bar has taken focus.
57 - (void)locationBarBecomesFirstResponder; 60 - (void)locationBarBecomesFirstResponder;
58 61
59 // TODO(crbug.com/694750): This call will be removed once dispatching is 62 // TODO(crbug.com/694750): This call will be removed once dispatching is
60 // available. 63 // available.
61 // Asks the consumer to execute a chrome command. 64 // Asks the consumer to execute a chrome command.
62 - (void)chromeExecuteCommand:(id)sender; 65 - (void)chromeExecuteCommand:(id)sender;
63 66
64 @end 67 @end
65 68
66 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ 69 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/BUILD.gn ('k') | ios/chrome/browser/ui/ntp/google_landing_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698