| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/memory/scoped_nsobject.h" | 7 #include "base/memory/scoped_nsobject.h" |
| 8 | 8 |
| 9 @class AnimatableView; | 9 @class AnimatableView; |
| 10 @protocol InfoBarContainer; | 10 @protocol InfoBarContainer; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Closes and disables the provided menu. Subclasses should call this for each | 100 // Closes and disables the provided menu. Subclasses should call this for each |
| 101 // popup menu in -infobarWillClose. | 101 // popup menu in -infobarWillClose. |
| 102 - (void)disablePopUpMenu:(NSMenu*)menu; | 102 - (void)disablePopUpMenu:(NSMenu*)menu; |
| 103 @end | 103 @end |
| 104 | 104 |
| 105 ///////////////////////////////////////////////////////////////////////// | 105 ///////////////////////////////////////////////////////////////////////// |
| 106 // InfoBarController subclasses, one for each InfoBarDelegate | 106 // InfoBarController subclasses, one for each InfoBarDelegate |
| 107 // subclass. Each of these subclasses overrides addAdditionalControls to | 107 // subclass. Each of these subclasses overrides addAdditionalControls to |
| 108 // configure its view as necessary. | 108 // configure its view as necessary. |
| 109 | 109 |
| 110 @interface AlternateNavInfoBarController : InfoBarController | |
| 111 // Called when there is a click on the link in the infobar. | |
| 112 - (void)linkClicked; | |
| 113 @end | |
| 114 | 110 |
| 115 | 111 |
| 116 @interface ConfirmInfoBarController : InfoBarController | |
| 117 // Called when the OK and Cancel buttons are clicked. | |
| 118 - (IBAction)ok:(id)sender; | |
| 119 - (IBAction)cancel:(id)sender; | |
| 120 // Called when there is a click on the link in the infobar. | |
| 121 - (void)linkClicked; | |
| 122 @end | |
| OLD | NEW |