OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_COLLECTION_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_COLLECTION_VIEW_H_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/bookmarks/bookmark_collection_view.h" |
| 9 |
| 10 @class BookmarkFolderCollectionView; |
| 11 |
| 12 namespace bookmarks { |
| 13 class BookmarkNode; |
| 14 } // namespace bookmarks |
| 15 |
| 16 @protocol BookmarkFolderCollectionViewDelegate<BookmarkCollectionViewDelegate> |
| 17 // Tells the delegate that a folder was selected for navigation. |
| 18 - (void)bookmarkFolderCollectionView:(BookmarkFolderCollectionView*)view |
| 19 selectedFolderForNavigation:(const bookmarks::BookmarkNode*)folder; |
| 20 @end |
| 21 |
| 22 // Shows all sub-folders and sub-urls of a folder node in a collection view. |
| 23 // Note: This class intentionally does not try to maintain state through a |
| 24 // folder transition. Depending on the type of animation that the designers |
| 25 // choose, we may require multiple instances of this view. |
| 26 @interface BookmarkFolderCollectionView : BookmarkCollectionView |
| 27 |
| 28 // Refreshes the entire view to reflect |folder|. |
| 29 - (void)resetFolder:(const bookmarks::BookmarkNode*)folder; |
| 30 |
| 31 // Called when something outside the view causes the promo state to change. |
| 32 - (void)promoStateChangedAnimated:(BOOL)animate; |
| 33 |
| 34 @property(nonatomic, assign) id<BookmarkFolderCollectionViewDelegate> delegate; |
| 35 @property(nonatomic, assign, readonly) const bookmarks::BookmarkNode* folder; |
| 36 |
| 37 @end |
| 38 |
| 39 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_COLLECTION_VIEW_H_ |
OLD | NEW |