| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // just reload relevant cells. | 206 // just reload relevant cells. |
| 207 - (void)cancelAllFaviconLoads; | 207 - (void)cancelAllFaviconLoads; |
| 208 | 208 |
| 209 // Asynchronously loads favicon for given index path. The loads are cancelled | 209 // Asynchronously loads favicon for given index path. The loads are cancelled |
| 210 // upon cell reuse automatically. | 210 // upon cell reuse automatically. |
| 211 - (void)loadFaviconAtIndexPath:(NSIndexPath*)indexPath; | 211 - (void)loadFaviconAtIndexPath:(NSIndexPath*)indexPath; |
| 212 | 212 |
| 213 #pragma mark - Commonly used properties | 213 #pragma mark - Commonly used properties |
| 214 | 214 |
| 215 @property(nonatomic, assign, readonly) bookmarks::BookmarkModel* bookmarkModel; | 215 @property(nonatomic, assign, readonly) bookmarks::BookmarkModel* bookmarkModel; |
| 216 @property(nonatomic, assign, readonly) id<UrlLoader> loader; | 216 @property(nonatomic, weak, readonly) id<UrlLoader> loader; |
| 217 @property(nonatomic, assign, readonly) ios::ChromeBrowserState* browserState; | 217 @property(nonatomic, assign, readonly) ios::ChromeBrowserState* browserState; |
| 218 | 218 |
| 219 #pragma mark - Editing | 219 #pragma mark - Editing |
| 220 | 220 |
| 221 @property(nonatomic, assign, readonly) BOOL editing; | 221 @property(nonatomic, assign, readonly) BOOL editing; |
| 222 | 222 |
| 223 #pragma mark - Promo Cell | 223 #pragma mark - Promo Cell |
| 224 | 224 |
| 225 // Return true if the section at the given index is a promo section. | 225 // Return true if the section at the given index is a promo section. |
| 226 - (BOOL)isPromoSection:(NSInteger)section; | 226 - (BOOL)isPromoSection:(NSInteger)section; |
| 227 - (BOOL)shouldShowPromoCell; | 227 - (BOOL)shouldShowPromoCell; |
| 228 - (BOOL)isPromoActive; | 228 - (BOOL)isPromoActive; |
| 229 | 229 |
| 230 @end | 230 @end |
| 231 | 231 |
| 232 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ | 232 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_COLLECTION_VIEW_H_ |
| OLD | NEW |