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

Unified Diff: ios/chrome/browser/ui/history/clear_browsing_bar.h

Issue 2590473002: Upstream Chrome on iOS source code [5/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/fullscreen_egtest.mm ('k') | ios/chrome/browser/ui/history/clear_browsing_bar.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/history/clear_browsing_bar.h
diff --git a/ios/chrome/browser/ui/history/clear_browsing_bar.h b/ios/chrome/browser/ui/history/clear_browsing_bar.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d4841b461ac93941527962d2ce7a9fa0c3e5e44
--- /dev/null
+++ b/ios/chrome/browser/ui/history/clear_browsing_bar.h
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_HISTORY_CLEAR_BROWSING_BAR_H_
+#define IOS_CHROME_BROWSER_UI_HISTORY_CLEAR_BROWSING_BAR_H_
+
+#import <UIKit/UIKit.h>
+
+// View at the bottom of the history panel that presents options to clear
+// browsing data or enter edit mode. When in edit mode, the bar displays a
+// delete button and a cancel button instead.
+@interface ClearBrowsingBar : UIView
+
+// Yes if in edit mode. Setting to |editing| ClearBrowsingBar for edit
+// mode or non-edit mode accordingly.
+@property(nonatomic, getter=isEditing) BOOL editing;
+// Yes if the edit button is enabled. Setting |editButtonEnabled| enables or
+// disables the edit button accordingly.
+@property(nonatomic, getter=isEditButtonEnabled) BOOL editButtonEnabled;
+// Yes if the delete button is enabled. Setting |deleteButtonEnabled| enables or
+// disables the delete button accordingly.
+@property(nonatomic, getter=isDeleteButtonEnabled) BOOL deleteButtonEnabled;
+
+// Sets the target/action of the "Clear Browsing Data..." button.
+- (void)setClearBrowsingDataTarget:(id)target action:(SEL)action;
+// Sets the target/action of the "Edit" button.
+- (void)setEditTarget:(id)target action:(SEL)action;
+// Sets the target/action of the "Delete" button.
+- (void)setDeleteTarget:(id)taret action:(SEL)action;
+// Sets the target/action of the "Cancel" button.
+- (void)setCancelTarget:(id)target action:(SEL)action;
+
+@end
+#endif // IOS_CHROME_BROWSER_UI_HISTORY_CLEAR_BROWSING_BAR_H_
« no previous file with comments | « ios/chrome/browser/ui/fullscreen_egtest.mm ('k') | ios/chrome/browser/ui/history/clear_browsing_bar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698