| 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 <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #import "chrome/browser/ui/cocoa/view_resizer.h" | 13 #import "chrome/browser/ui/cocoa/view_resizer.h" |
| 14 | 14 |
| 15 @class BrowserWindowController; | 15 @class BrowserWindowController; |
| 16 @class InfoBarController; | 16 @class InfoBarController; |
| 17 class InfoBarCocoa; | 17 class InfoBarCocoa; |
| 18 class InfoBarContainerCocoa; | 18 class InfoBarContainerCocoa; |
| 19 class TabStripModel; | |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 class WebContents; | 21 class WebContents; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace infobars { | |
| 26 class InfoBarDelegate; | |
| 27 } | |
| 28 | |
| 29 // Protocol for basic container methods, as needed by an InfoBarController. | 24 // Protocol for basic container methods, as needed by an InfoBarController. |
| 30 // This protocol exists to make mocking easier in unittests. | 25 // This protocol exists to make mocking easier in unittests. |
| 31 @protocol InfoBarContainerControllerBase | 26 @protocol InfoBarContainerControllerBase |
| 32 - (BOOL)shouldSuppressTopInfoBarTip; | 27 - (BOOL)shouldSuppressTopInfoBarTip; |
| 33 - (CGFloat)infobarArrowX; | 28 - (CGFloat)infobarArrowX; |
| 34 @end | 29 @end |
| 35 | 30 |
| 36 // Controller for the infobar container view, which is the superview | 31 // Controller for the infobar container view, which is the superview |
| 37 // of all the infobar views. This class owns zero or more | 32 // of all the infobar views. This class owns zero or more |
| 38 // InfoBarControllers, which manage the infobar views. This class | 33 // InfoBarControllers, which manage the infobar views. This class |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 88 |
| 94 // Set the max arrow height of the top infobar. | 89 // Set the max arrow height of the top infobar. |
| 95 - (void)setMaxTopArrowHeight:(NSInteger)height; | 90 - (void)setMaxTopArrowHeight:(NSInteger)height; |
| 96 | 91 |
| 97 // The height of all the info bars. Does not include the top arrow. | 92 // The height of all the info bars. Does not include the top arrow. |
| 98 - (CGFloat)heightOfInfoBars; | 93 - (CGFloat)heightOfInfoBars; |
| 99 | 94 |
| 100 @end | 95 @end |
| 101 | 96 |
| 102 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ | 97 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_CONTROLLER_H_ |
| OLD | NEW |