| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // of all the infobar views. This class owns zero or more | 45 // of all the infobar views. This class owns zero or more |
| 46 // InfoBarControllers, which manage the infobar views. This class | 46 // InfoBarControllers, which manage the infobar views. This class |
| 47 // also receives tab strip model notifications and handles | 47 // also receives tab strip model notifications and handles |
| 48 // adding/removing infobars when needed. | 48 // adding/removing infobars when needed. |
| 49 @interface InfoBarContainerController : NSViewController <ViewResizer, | 49 @interface InfoBarContainerController : NSViewController <ViewResizer, |
| 50 InfoBarContainer> { | 50 InfoBarContainer> { |
| 51 @private | 51 @private |
| 52 // Needed to send resize messages when infobars are added or removed. | 52 // Needed to send resize messages when infobars are added or removed. |
| 53 id<ViewResizer> resizeDelegate_; // weak | 53 id<ViewResizer> resizeDelegate_; // weak |
| 54 | 54 |
| 55 // The TabContents we are currently showing infobars for. | 55 // The TabContentsWrapper we are currently showing infobars for. |
| 56 TabContentsWrapper* currentTabContents_; // weak | 56 TabContentsWrapper* currentTabContents_; // weak |
| 57 | 57 |
| 58 // Holds the InfoBarControllers currently owned by this container. | 58 // Holds the InfoBarControllers currently owned by this container. |
| 59 scoped_nsobject<NSMutableArray> infobarControllers_; | 59 scoped_nsobject<NSMutableArray> infobarControllers_; |
| 60 | 60 |
| 61 // Holds InfoBarControllers when they are in the process of animating out. | 61 // Holds InfoBarControllers when they are in the process of animating out. |
| 62 scoped_nsobject<NSMutableSet> closingInfoBars_; | 62 scoped_nsobject<NSMutableSet> closingInfoBars_; |
| 63 | 63 |
| 64 // Lets us registers for INFOBAR_ADDED/INFOBAR_REMOVED | 64 // Lets us registers for INFOBAR_ADDED/INFOBAR_REMOVED |
| 65 // notifications. The actual notifications are sent to the | 65 // notifications. The actual notifications are sent to the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Removes all infobar views. Infobars which were already closing will be | 127 // Removes all infobar views. Infobars which were already closing will be |
| 128 // completely closed (i.e. InfobarDelegate::InfoBarClosed() will be called and | 128 // completely closed (i.e. InfobarDelegate::InfoBarClosed() will be called and |
| 129 // we'll get a callback to removeController). Other infobars will simply stop | 129 // we'll get a callback to removeController). Other infobars will simply stop |
| 130 // animating and disappear. Callers must call positionInfoBarsAndRedraw() | 130 // animating and disappear. Callers must call positionInfoBarsAndRedraw() |
| 131 // after calling this method. | 131 // after calling this method. |
| 132 - (void)removeAllInfoBars; | 132 - (void)removeAllInfoBars; |
| 133 | 133 |
| 134 @end | 134 @end |
| 135 | 135 |
| 136 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 136 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| OLD | NEW |