OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "base/mac/cocoa_protocols.h" | 7 #import "base/mac/cocoa_protocols.h" |
8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
9 | 9 |
10 @class AnimatableView; | 10 @class AnimatableView; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Close or animate close the infobar. | 64 // Close or animate close the infobar. |
65 - (void)close; | 65 - (void)close; |
66 - (void)animateClosed; | 66 - (void)animateClosed; |
67 | 67 |
68 // Subclasses can override this method to add additional controls to | 68 // Subclasses can override this method to add additional controls to |
69 // the infobar view. This method is called by awakeFromNib. The | 69 // the infobar view. This method is called by awakeFromNib. The |
70 // default implementation does nothing. | 70 // default implementation does nothing. |
71 - (void)addAdditionalControls; | 71 - (void)addAdditionalControls; |
72 | 72 |
| 73 // Subclasses must override this method to perform cleanup just before the |
| 74 // infobar closes. |
| 75 - (void)infobarWillClose; |
| 76 |
73 // Sets the info bar message to the specified |message|. | 77 // Sets the info bar message to the specified |message|. |
74 - (void)setLabelToMessage:(NSString*)message; | 78 - (void)setLabelToMessage:(NSString*)message; |
75 | 79 |
76 // Removes the OK and Cancel buttons and resizes the textfield to use the | 80 // Removes the OK and Cancel buttons and resizes the textfield to use the |
77 // space. | 81 // space. |
78 - (void)removeButtons; | 82 - (void)removeButtons; |
79 | 83 |
80 @property(nonatomic, assign) id<InfoBarContainer> containerController; | 84 @property(nonatomic, assign) id<InfoBarContainer> containerController; |
81 @property(nonatomic, readonly) InfoBarDelegate* delegate; | 85 @property(nonatomic, readonly) InfoBarDelegate* delegate; |
82 | 86 |
(...skipping 14 matching lines...) Expand all Loading... |
97 @end | 101 @end |
98 | 102 |
99 | 103 |
100 @interface ConfirmInfoBarController : InfoBarController | 104 @interface ConfirmInfoBarController : InfoBarController |
101 // Called when the OK and Cancel buttons are clicked. | 105 // Called when the OK and Cancel buttons are clicked. |
102 - (IBAction)ok:(id)sender; | 106 - (IBAction)ok:(id)sender; |
103 - (IBAction)cancel:(id)sender; | 107 - (IBAction)cancel:(id)sender; |
104 // Called when there is a click on the link in the infobar. | 108 // Called when there is a click on the link in the infobar. |
105 - (void)linkClicked; | 109 - (void)linkClicked; |
106 @end | 110 @end |
OLD | NEW |