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_DATA_SOURCE_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "components/ntp_tiles/ntp_tile.h" | 10 #include "components/ntp_tiles/ntp_tile.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Logs a histogram due to a Most Visited item being opened. | 34 // Logs a histogram due to a Most Visited item being opened. |
35 - (void)logMostVisitedClick:(const NSUInteger)visitedIndex | 35 - (void)logMostVisitedClick:(const NSUInteger)visitedIndex |
36 tileType:(ntp_tiles::TileVisualType)tileType; | 36 tileType:(ntp_tiles::TileVisualType)tileType; |
37 | 37 |
38 // Called when a what's new promo is viewed. | 38 // Called when a what's new promo is viewed. |
39 - (void)promoViewed; | 39 - (void)promoViewed; |
40 | 40 |
41 // Called when a what's new promo is tapped. | 41 // Called when a what's new promo is tapped. |
42 - (void)promoTapped; | 42 - (void)promoTapped; |
43 | 43 |
| 44 // TODO(crbug.com/694750): This should move to a dispatcher. |
| 45 // Called before the fake tab switcher icon is tapped to save snapshots. |
| 46 - (void)prepareToEnterTabSwitcher:(id)sender; |
| 47 |
44 // TODO(crbug.com/694750): The following two methods should be moved to the | 48 // TODO(crbug.com/694750): The following two methods should be moved to the |
45 // consumer, and converted into types more suitable for a consumer. | 49 // consumer, and converted into types more suitable for a consumer. |
46 // Gets an a most visited NTP tile at |index|. | 50 // Gets an a most visited NTP tile at |index|. |
47 - (ntp_tiles::NTPTile)mostVisitedAtIndex:(NSUInteger)index; | 51 - (ntp_tiles::NTPTile)mostVisitedAtIndex:(NSUInteger)index; |
48 | 52 |
49 // Gets the number of most visited entries. | 53 // Gets the number of most visited entries. |
50 - (NSUInteger)mostVisitedSize; | 54 - (NSUInteger)mostVisitedSize; |
51 | 55 |
52 // TODO(crbug.com/694750): The following five properties will be removed in | 56 // TODO(crbug.com/694750): The following three properties will be removed in |
53 // subsequent CLs, with data provided via GoogleDataConsumer into types more | 57 // subsequent CLs, with data provided via GoogleDataConsumer into types more |
54 // suitable for a consumer. | 58 // suitable for a consumer. |
55 | 59 |
56 // Gets the reading list model. | 60 // Gets the reading list model. |
57 - (ReadingListModel*)readingListModel; | 61 - (ReadingListModel*)readingListModel; |
58 | 62 |
59 // Gets the large icon cache. | 63 // Gets the large icon cache. |
60 - (LargeIconCache*)largeIconCache; | 64 - (LargeIconCache*)largeIconCache; |
61 | 65 |
62 // Gets the large icon service. | 66 // Gets the large icon service. |
63 - (favicon::LargeIconService*)largeIconService; | 67 - (favicon::LargeIconService*)largeIconService; |
64 | 68 |
65 // Gets the toolbar delegate. | |
66 - (id<WebToolbarDelegate>)toolbarDelegate; | |
67 | 69 |
68 | 70 |
69 @end | 71 @end |
70 | 72 |
71 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ | 73 #endif // IOS_CHROME_BROWSER_UI_NTP_GOOGLE_LANDING_DATA_SOURCE_H_ |
OLD | NEW |