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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 @property(nonatomic, assign) id<InfoBarContainer> containerController; | 84 @property(nonatomic, assign) id<InfoBarContainer> containerController; |
85 @property(nonatomic, readonly) InfoBarDelegate* delegate; | 85 @property(nonatomic, readonly) InfoBarDelegate* delegate; |
86 | 86 |
87 @end | 87 @end |
88 | 88 |
89 ///////////////////////////////////////////////////////////////////////// | 89 ///////////////////////////////////////////////////////////////////////// |
90 // InfoBarController subclasses, one for each InfoBarDelegate | 90 // InfoBarController subclasses, one for each InfoBarDelegate |
91 // subclass. Each of these subclasses overrides addAdditionalControls to | 91 // subclass. Each of these subclasses overrides addAdditionalControls to |
92 // configure its view as necessary. | 92 // configure its view as necessary. |
93 | 93 |
94 @interface AlertInfoBarController : InfoBarController | |
95 @end | |
96 | |
97 | |
98 @interface LinkInfoBarController : InfoBarController | 94 @interface LinkInfoBarController : InfoBarController |
99 // Called when there is a click on the link in the infobar. | 95 // Called when there is a click on the link in the infobar. |
100 - (void)linkClicked; | 96 - (void)linkClicked; |
101 @end | 97 @end |
102 | 98 |
103 | 99 |
104 @interface ConfirmInfoBarController : InfoBarController | 100 @interface ConfirmInfoBarController : InfoBarController |
105 // Called when the OK and Cancel buttons are clicked. | 101 // Called when the OK and Cancel buttons are clicked. |
106 - (IBAction)ok:(id)sender; | 102 - (IBAction)ok:(id)sender; |
107 - (IBAction)cancel:(id)sender; | 103 - (IBAction)cancel:(id)sender; |
108 // Called when there is a click on the link in the infobar. | 104 // Called when there is a click on the link in the infobar. |
109 - (void)linkClicked; | 105 - (void)linkClicked; |
110 @end | 106 @end |
OLD | NEW |