| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Positions the infobar views in the container view and notifies | 120 // Positions the infobar views in the container view and notifies |
| 121 // |browser_controller_| that it needs to resize the container view. | 121 // |browser_controller_| that it needs to resize the container view. |
| 122 - (void)positionInfoBarsAndRedraw; | 122 - (void)positionInfoBarsAndRedraw; |
| 123 | 123 |
| 124 @end | 124 @end |
| 125 | 125 |
| 126 | 126 |
| 127 @interface InfoBarContainerController (JustForTesting) | 127 @interface InfoBarContainerController (JustForTesting) |
| 128 | 128 |
| 129 // Removes all infobar views. Infobars which were already closing will be | 129 // Removes all infobar views. Infobars which were already closing will be |
| 130 // completely closed (i.e. InfobarDelegate::InfoBarClosed() will be called and | 130 // completely closed (i.e. the InfoBarDelegate will be deleted and we'll get a |
| 131 // we'll get a callback to removeController). Other infobars will simply stop | 131 // callback to removeController). Other infobars will simply stop animating and |
| 132 // animating and disappear. Callers must call positionInfoBarsAndRedraw() | 132 // disappear. Callers must call positionInfoBarsAndRedraw() after calling this |
| 133 // after calling this method. | 133 // method. |
| 134 - (void)removeAllInfoBars; | 134 - (void)removeAllInfoBars; |
| 135 | 135 |
| 136 @end | 136 @end |
| 137 | 137 |
| 138 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 138 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| OLD | NEW |