OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @class BookmarkPanelView; | 10 @class BookmarkPanelView; |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // If a user-driven animation is in progress, these methods have no effect. | 36 // If a user-driven animation is in progress, these methods have no effect. |
37 // Calling these methods will invoke delegate callbacks. | 37 // Calling these methods will invoke delegate callbacks. |
38 - (void)showMenuAnimated:(BOOL)animated; | 38 - (void)showMenuAnimated:(BOOL)animated; |
39 - (void)hideMenuAnimated:(BOOL)animated; | 39 - (void)hideMenuAnimated:(BOOL)animated; |
40 | 40 |
41 // Even if this method returns NO, the menu can still be in the process of a | 41 // Even if this method returns NO, the menu can still be in the process of a |
42 // programmatic animation. | 42 // programmatic animation. |
43 - (BOOL)userDrivenAnimationInProgress; | 43 - (BOOL)userDrivenAnimationInProgress; |
44 | 44 |
45 @property(nonatomic, assign) id<BookmarkPanelViewDelegate> delegate; | 45 @property(nonatomic, weak) id<BookmarkPanelViewDelegate> delegate; |
46 | 46 |
47 // These views should not be modified directly. Instead, subviews should be | 47 // These views should not be modified directly. Instead, subviews should be |
48 // added to each to create the desired UI. | 48 // added to each to create the desired UI. |
49 @property(nonatomic, retain, readonly) UIView* contentView; | 49 @property(nonatomic, strong, readonly) UIView* contentView; |
50 @property(nonatomic, retain, readonly) UIView* menuView; | 50 @property(nonatomic, strong, readonly) UIView* menuView; |
51 | 51 |
52 // Whether the menu is being shown. If a user-driven animation is in progress, | 52 // Whether the menu is being shown. If a user-driven animation is in progress, |
53 // this property reflects the state of the menu at the beginning of the | 53 // this property reflects the state of the menu at the beginning of the |
54 // animation. | 54 // animation. |
55 @property(nonatomic, assign, readonly) BOOL showingMenu; | 55 @property(nonatomic, assign, readonly) BOOL showingMenu; |
56 | 56 |
57 // This method is used to enable or disable swiping in the menu from the left. | 57 // This method is used to enable or disable swiping in the menu from the left. |
58 - (void)enableSideSwiping:(BOOL)enable; | 58 - (void)enableSideSwiping:(BOOL)enable; |
59 | 59 |
60 @end | 60 @end |
61 | 61 |
62 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ | 62 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PANEL_VIEW_H_ |
OLD | NEW |