OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_HISTORY_CLEAR_BROWSING_BAR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_HISTORY_CLEAR_BROWSING_BAR_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // View at the bottom of the history panel that presents options to clear |
| 11 // browsing data or enter edit mode. When in edit mode, the bar displays a |
| 12 // delete button and a cancel button instead. |
| 13 @interface ClearBrowsingBar : UIView |
| 14 |
| 15 // Yes if in edit mode. Setting to |editing| ClearBrowsingBar for edit |
| 16 // mode or non-edit mode accordingly. |
| 17 @property(nonatomic, getter=isEditing) BOOL editing; |
| 18 // Yes if the edit button is enabled. Setting |editButtonEnabled| enables or |
| 19 // disables the edit button accordingly. |
| 20 @property(nonatomic, getter=isEditButtonEnabled) BOOL editButtonEnabled; |
| 21 // Yes if the delete button is enabled. Setting |deleteButtonEnabled| enables or |
| 22 // disables the delete button accordingly. |
| 23 @property(nonatomic, getter=isDeleteButtonEnabled) BOOL deleteButtonEnabled; |
| 24 |
| 25 // Sets the target/action of the "Clear Browsing Data..." button. |
| 26 - (void)setClearBrowsingDataTarget:(id)target action:(SEL)action; |
| 27 // Sets the target/action of the "Edit" button. |
| 28 - (void)setEditTarget:(id)target action:(SEL)action; |
| 29 // Sets the target/action of the "Delete" button. |
| 30 - (void)setDeleteTarget:(id)taret action:(SEL)action; |
| 31 // Sets the target/action of the "Cancel" button. |
| 32 - (void)setCancelTarget:(id)target action:(SEL)action; |
| 33 |
| 34 @end |
| 35 #endif // IOS_CHROME_BROWSER_UI_HISTORY_CLEAR_BROWSING_BAR_H_ |
OLD | NEW |