Chromium Code Reviews| 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_INFOBARS_INFOBAR_PICKER_VIEW_H_ | |
| 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_PICKER_VIEW_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 @class InfoBarPickerView; | |
| 11 | |
| 12 @protocol InfoBarPickerViewDelegate<NSObject> | |
|
marq (ping after 24h)
2016/06/28 13:43:18
Instead of having a protocol for passing UI events
| |
| 13 - (void)infoBarPickerViewPressedDone:(InfoBarPickerView*)infoBarPicker; | |
| 14 - (void)infoBarPickerViewPressedCancel:(InfoBarPickerView*)infoBarPicker; | |
| 15 @end | |
| 16 | |
| 17 @interface InfoBarPickerView : UIView | |
| 18 | |
| 19 @property(nonatomic, weak) id<InfoBarPickerViewDelegate> delegate; | |
| 20 @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
| |
| 21 @property(nonatomic, weak) id<UIPickerViewDataSource> pickerDataSource; | |
| 22 @property(nonatomic, retain) UINavigationBar* navigationBar; | |
| 23 @property(nonatomic, retain) UIPickerView* pickerView; | |
| 24 | |
| 25 @end | |
| 26 | |
| 27 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_PICKER_VIEW_H_ | |
| OLD | NEW |