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

Side by Side Diff: ios/public/provider/chrome/browser/ui/infobar_view_protocol.h

Issue 975663002: Remove the distinction between informational and warning infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « ios/chrome/browser/translate/translate_message_infobar_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 struct CGSize; 10 struct CGSize;
11 class InfoBarViewDelegate; 11 class InfoBarViewDelegate;
12 @class UIImage; 12 @class UIImage;
13 13
14 // Interface for setting up the infobar's widgets. 14 // Interface for setting up the infobar's widgets.
15 @protocol InfoBarViewProtocol 15 @protocol InfoBarViewProtocol
16 // How much of infobar is visible. The infobar is only partly visible during 16 // How much of infobar is visible. The infobar is only partly visible during
17 // showing/hiding animation. 17 // showing/hiding animation.
18 @property(nonatomic, assign) CGFloat visibleHeight; 18 @property(nonatomic, assign) CGFloat visibleHeight;
19 19
20 // The designated initializer. Set |isWarning| to YES to have a warning infobar, 20 // The designated initializer.
21 // and to NO to have an informational infobar.
22 - (instancetype)initWithFrame:(CGRect)frame 21 - (instancetype)initWithFrame:(CGRect)frame
23 delegate:(InfoBarViewDelegate*)delegate 22 delegate:(InfoBarViewDelegate*)delegate;
24 isWarning:(BOOL)isWarning;
25 23
26 // Stops propagating events to delegate. 24 // Stops propagating events to delegate.
27 - (void)resetDelegate; 25 - (void)resetDelegate;
28 26
29 // TODO(jif): rename methods from add* to set*. crbug.com/302582 27 // TODO(jif): rename methods from add* to set*. crbug.com/302582
30 // Adds a dismiss button subview. 28 // Adds a dismiss button subview.
31 - (void)addCloseButtonWithTag:(NSInteger)tag 29 - (void)addCloseButtonWithTag:(NSInteger)tag
32 target:(id)target 30 target:(id)target
33 action:(SEL)action; 31 action:(SEL)action;
34 32
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Adds to the infobar a switch and an adjacent label. 70 // Adds to the infobar a switch and an adjacent label.
73 - (void)addSwitchWithLabel:(NSString*)label 71 - (void)addSwitchWithLabel:(NSString*)label
74 isOn:(BOOL)isOn 72 isOn:(BOOL)isOn
75 tag:(NSInteger)tag 73 tag:(NSInteger)tag
76 target:(id)target 74 target:(id)target
77 action:(SEL)action; 75 action:(SEL)action;
78 76
79 @end 77 @end
80 78
81 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_ 79 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UI_INFOBAR_VIEW_PROTOCOL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/translate/translate_message_infobar_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698