Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1185)

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bars/bookmark_navigation_bar.h

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698