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_BARS_BOOKMARK_NAVIGATION_BAR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BARS_BOOKMARK_NAVIGATION_BAR_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // The navigation bar on the bookmark home page. |
| 11 @interface BookmarkNavigationBar : UIView |
| 12 |
| 13 // The height that this view's content view will be instantiated at. This is |
| 14 // independent of the status bar. |
| 15 + (CGFloat)expectedContentViewHeight; |
| 16 |
| 17 // Designated initializer. |
| 18 - (id)initWithFrame:(CGRect)outerFrame; |
| 19 |
| 20 // Set the target/action of the cancel button. |
| 21 - (void)setCancelTarget:(id)target action:(SEL)action; |
| 22 // Set the target/action of the edit button. |
| 23 - (void)setEditTarget:(id)target action:(SEL)action; |
| 24 // Set the target/action of the menu button. |
| 25 - (void)setMenuTarget:(id)target action:(SEL)action; |
| 26 // Set the target/action of the back button. |
| 27 - (void)setBackTarget:(id)target action:(SEL)action; |
| 28 - (void)setTitle:(NSString*)title; |
| 29 |
| 30 // Shows or hides the edit button. |
| 31 - (void)showEditButtonWithAnimationDuration:(CGFloat)duration; |
| 32 - (void)hideEditButtonWithAnimationDuration:(CGFloat)duration; |
| 33 // |visibility| of 1 is fully visible, and 0 is fully hidden. |
| 34 - (void)updateEditButtonVisibility:(CGFloat)visibility; |
| 35 |
| 36 // The menu and back button are at the same place. Only one should show at the |
| 37 // same time. By default, the menu button is showing. |
| 38 - (void)showMenuButtonInsteadOfBackButton:(CGFloat)duration; |
| 39 - (void)showBackButtonInsteadOfMenuButton:(CGFloat)duration; |
| 40 |
| 41 @end |
| 42 |
| 43 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BARS_BOOKMARK_NAVIGATION_BAR_H_ |
OLD | NEW |