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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698