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

Unified Diff: ios/chrome/browser/infobars/infobar_picker_view.h

Issue 2107743002: Add InfoBarPickerController for displaying a picker view from an infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_passwords_strings
Patch Set: Created 4 years, 6 months 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
Index: ios/chrome/browser/infobars/infobar_picker_view.h
diff --git a/ios/chrome/browser/infobars/infobar_picker_view.h b/ios/chrome/browser/infobars/infobar_picker_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..faeee9b6b9fa39e509763029a1e4938e527f1c4b
--- /dev/null
+++ b/ios/chrome/browser/infobars/infobar_picker_view.h
@@ -0,0 +1,27 @@
+// 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_INFOBARS_INFOBAR_PICKER_VIEW_H_
+#define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_PICKER_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@class InfoBarPickerView;
+
+@protocol InfoBarPickerViewDelegate<NSObject>
marq (ping after 24h) 2016/06/28 13:43:18 Instead of having a protocol for passing UI events
+- (void)infoBarPickerViewPressedDone:(InfoBarPickerView*)infoBarPicker;
+- (void)infoBarPickerViewPressedCancel:(InfoBarPickerView*)infoBarPicker;
+@end
+
+@interface InfoBarPickerView : UIView
+
+@property(nonatomic, weak) id<InfoBarPickerViewDelegate> delegate;
+@property(nonatomic, weak) id<UIPickerViewDelegate> pickerDelegate;
marq (ping after 24h) 2016/06/28 13:43:18 If the picker view is public, then its delegate an
Jackie Quinn 2016/06/28 13:51:45 That makes sense. Would it make more sense to jus
marq (ping after 24h) 2016/06/28 14:43:21 Well, maybe. The view layout isn't too involved he
+@property(nonatomic, weak) id<UIPickerViewDataSource> pickerDataSource;
+@property(nonatomic, retain) UINavigationBar* navigationBar;
+@property(nonatomic, retain) UIPickerView* pickerView;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_PICKER_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698