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_EDITING_BAR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BARS_BOOKMARK_EDITING_BAR_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.h" |
| 11 |
| 12 // The top bar that shows up when a user is editing bookmarks. |
| 13 @interface BookmarkEditingBar : BookmarkTopBar |
| 14 // Set the target/action of the respective buttons. |
| 15 // The cancel button ends editing mode. |
| 16 - (void)setCancelTarget:(id)target action:(SEL)action; |
| 17 // The edit button edits a single bookmark/folder. |
| 18 - (void)setEditTarget:(id)target action:(SEL)action; |
| 19 // The move button moves any number of bookmarks/folders. |
| 20 - (void)setMoveTarget:(id)target action:(SEL)action; |
| 21 // The delete button moves any number of bookmarks/folders. |
| 22 - (void)setDeleteTarget:(id)target action:(SEL)action; |
| 23 |
| 24 // The UI changes based on the number of bookmarks selected for editing. |
| 25 - (void)updateUIWithBookmarkCount:(int)bookmarkCount |
| 26 folderCount:(int)folderCount; |
| 27 // Instantaneously shows or hides the shadow. |
| 28 - (void)showShadow:(BOOL)show; |
| 29 @end |
| 30 |
| 31 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BARS_BOOKMARK_EDITING_BAR_H_ |
OLD | NEW |