| 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/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #import "chrome/browser/ui/cocoa/view_resizer.h" | 12 #import "chrome/browser/ui/cocoa/view_resizer.h" |
| 13 | 13 |
| 14 @class BrowserWindowController; | 14 @class BrowserWindowController; |
| 15 @class InfoBarController; | 15 @class InfoBarController; |
| 16 class InfoBarCocoa; | 16 class InfoBarCocoa; |
| 17 class InfoBarContainerCocoa; | 17 class InfoBarContainerCocoa; |
| 18 class InfoBarDelegate; | |
| 19 class TabStripModel; | 18 class TabStripModel; |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 class WebContents; | 21 class WebContents; |
| 23 } | 22 } |
| 24 | 23 |
| 24 namespace infobars { |
| 25 class InfoBarDelegate; |
| 26 } |
| 27 |
| 25 // Protocol for basic container methods, as needed by an InfoBarController. | 28 // Protocol for basic container methods, as needed by an InfoBarController. |
| 26 // This protocol exists to make mocking easier in unittests. | 29 // This protocol exists to make mocking easier in unittests. |
| 27 @protocol InfoBarContainerControllerBase | 30 @protocol InfoBarContainerControllerBase |
| 28 - (BrowserWindowController*)browserWindowController; | 31 - (BrowserWindowController*)browserWindowController; |
| 29 - (BOOL)shouldSuppressTopInfoBarTip; | 32 - (BOOL)shouldSuppressTopInfoBarTip; |
| 30 - (CGFloat)infobarArrowX; | 33 - (CGFloat)infobarArrowX; |
| 31 @end | 34 @end |
| 32 | 35 |
| 33 // Controller for the infobar container view, which is the superview | 36 // Controller for the infobar container view, which is the superview |
| 34 // of all the infobar views. This class owns zero or more | 37 // of all the infobar views. This class owns zero or more |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Removes the given infobar. | 88 // Removes the given infobar. |
| 86 - (void)removeInfoBar:(InfoBarCocoa*)infobar; | 89 - (void)removeInfoBar:(InfoBarCocoa*)infobar; |
| 87 | 90 |
| 88 // Positions the infobar views in the container view and notifies | 91 // Positions the infobar views in the container view and notifies |
| 89 // |browser_controller_| that it needs to resize the container view. | 92 // |browser_controller_| that it needs to resize the container view. |
| 90 - (void)positionInfoBarsAndRedraw:(BOOL)isAnimating; | 93 - (void)positionInfoBarsAndRedraw:(BOOL)isAnimating; |
| 91 | 94 |
| 92 @end | 95 @end |
| 93 | 96 |
| 94 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 97 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| OLD | NEW |