| 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 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" | 5 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "chrome/browser/infobars/infobar_service.h" | 9 #include "chrome/browser/infobars/infobar_service.h" |
| 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 return; | 153 return; |
| 154 | 154 |
| 155 // This code can be executed while InfoBarController is still on the stack, so | 155 // This code can be executed while InfoBarController is still on the stack, so |
| 156 // we retain and autorelease the controller to prevent it from being | 156 // we retain and autorelease the controller to prevent it from being |
| 157 // dealloc'ed too early. | 157 // dealloc'ed too early. |
| 158 [[controller retain] autorelease]; | 158 [[controller retain] autorelease]; |
| 159 [[controller view] removeFromSuperview]; | 159 [[controller view] removeFromSuperview]; |
| 160 [infobarControllers_ removeObject:controller]; | 160 [infobarControllers_ removeObject:controller]; |
| 161 } | 161 } |
| 162 | 162 |
| 163 - (void)setMaxTopArrowHeight:(NSInteger)height { |
| 164 containerCocoa_->SetMaxTopArrowHeight(height); |
| 165 } |
| 166 |
| 163 @end | 167 @end |
| OLD | NEW |