Chromium Code Reviews| 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_ |