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

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

Issue 2833513002: Replace TabModel with WebStateList in GoogleLandingController. (Closed)
Patch Set: 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 #include "ios/public/provider/chrome/browser/ui/logo_vendor.h" 10 #include "ios/public/provider/chrome/browser/ui/logo_vendor.h"
11 11
12 // Handles google landing controller update notifications. 12 // Handles google landing controller update notifications.
13 @protocol GoogleLandingConsumer<NSObject> 13 @protocol GoogleLandingConsumer<NSObject>
14 14
15 // Whether the Google logo or doodle is being shown. 15 // Whether the Google logo or doodle is being shown.
16 @property(nonatomic, assign) BOOL showLogo; 16 @property(nonatomic, assign) BOOL showLogo;
17 17
18 // Exposes view and methods to drive the doodle. 18 // Exposes view and methods to drive the doodle.
19 @property(nonatomic, assign) id<LogoVendor> logoVendor; 19 @property(nonatomic, assign) id<LogoVendor> logoVendor;
20 20
21 // |YES| if this consumer is incognito. 21 // |YES| if this consumer is incognito.
22 @property(nonatomic, assign) BOOL offTheRecord; 22 @property(nonatomic, assign) BOOL offTheRecord;
23 23
24 // |YES| if this consumer is has voice search enabled. 24 // |YES| if this consumer is has voice search enabled.
25 @property(nonatomic, assign) BOOL voiceSearchEnabled; 25 @property(nonatomic, assign) BOOL voiceSearchEnabled;
26 26
27 // The number of tabs to show in the google landing fake toolbar.
28 @property(nonatomic, assign) int tabCount;
29
27 // Tells the consumer to that most visited data updated. 30 // Tells the consumer to that most visited data updated.
28 - (void)mostVisitedDataUpdated; 31 - (void)mostVisitedDataUpdated;
29 32
30 // Tells the consumer a most visited icon was updated. 33 // Tells the consumer a most visited icon was updated.
31 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index; 34 - (void)mostVisitedIconMadeAvailableAtIndex:(NSUInteger)index;
32 35
33 // The location bar has lost focus. 36 // The location bar has lost focus.
34 - (void)locationBarResignsFirstResponder; 37 - (void)locationBarResignsFirstResponder;
35 38
36 // Tell location bar has taken focus. 39 // Tell location bar has taken focus.
37 - (void)locationBarBecomesFirstResponder; 40 - (void)locationBarBecomesFirstResponder;
38 41
39 // Asks the consumer to execute a chrome command. 42 // Asks the consumer to execute a chrome command.
40 - (void)chromeExecuteCommand:(id)sender; 43 - (void)chromeExecuteCommand:(id)sender;
41 44
42 @end 45 @end
43 46
44 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_ 47 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698