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_HOME_PRIMARY_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_HOME_PRIMARY_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // Interface for views that can be set as primary views in the bookmark home |
| 11 // controllers (BookmarkHomeHandsetViewController and |
| 12 // BookmarkHomeTabletViewController). |
| 13 @protocol BookmarkHomePrimaryView<NSObject> |
| 14 |
| 15 // The collection view of the primary view. |
| 16 - (UICollectionView*)collectionView; |
| 17 |
| 18 // Regardless of the current orientation, returns the y of the content offset of |
| 19 // the receiver if it were to have portrait orientation. |
| 20 - (CGFloat)contentPositionInPortraitOrientation; |
| 21 |
| 22 // Called when the content position needs to be updated. |
| 23 - (void)applyContentPosition:(CGFloat)position; |
| 24 |
| 25 // Called when the orientation changes. |
| 26 // TODO(crbug.com/390548): Remove the use of this method. |
| 27 - (void)changeOrientation:(UIInterfaceOrientation)orientation; |
| 28 |
| 29 // If the receiver contains a scrollview, this is the occasion to set it up as |
| 30 // scrolling to top when the status bar is tapped. |
| 31 - (void)setScrollsToTop:(BOOL)scrollsToTop; |
| 32 |
| 33 // Called when the receiver should change itself to editing mode. |
| 34 - (void)setEditing:(BOOL)editing animated:(BOOL)animated; |
| 35 |
| 36 @end |
| 37 |
| 38 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_HOME_PRIMARY_VIEW_H_ |
OLD | NEW |