| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h" |
| 6 | 6 |
| 7 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" | 7 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" |
| 8 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" | 8 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" |
| 9 | 9 |
| 10 const int InfoBarContainerDelegate::kSeparatorLineHeight = 1; | |
| 11 const int InfoBarContainerDelegate::kDefaultArrowTargetHeight = 11; | |
| 12 | |
| 13 InfoBarContainerCocoa::InfoBarContainerCocoa( | 10 InfoBarContainerCocoa::InfoBarContainerCocoa( |
| 14 InfoBarContainerController* controller) | 11 InfoBarContainerController* controller) |
| 15 : infobars::InfoBarContainer(this), | 12 : infobars::InfoBarContainer(this), |
| 16 controller_(controller) { | 13 controller_(controller) { |
| 17 } | 14 } |
| 18 | 15 |
| 19 InfoBarContainerCocoa::~InfoBarContainerCocoa() { | 16 InfoBarContainerCocoa::~InfoBarContainerCocoa() { |
| 20 RemoveAllInfoBarsForDestruction(); | 17 RemoveAllInfoBarsForDestruction(); |
| 21 } | 18 } |
| 22 | 19 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 39 | 36 |
| 40 void InfoBarContainerCocoa::InfoBarContainerStateChanged(bool is_animating) { | 37 void InfoBarContainerCocoa::InfoBarContainerStateChanged(bool is_animating) { |
| 41 [controller_ positionInfoBarsAndRedraw:is_animating]; | 38 [controller_ positionInfoBarsAndRedraw:is_animating]; |
| 42 } | 39 } |
| 43 | 40 |
| 44 bool InfoBarContainerCocoa::DrawInfoBarArrows(int* x) const { | 41 bool InfoBarContainerCocoa::DrawInfoBarArrows(int* x) const { |
| 45 if (x) | 42 if (x) |
| 46 *x = [controller_ infobarArrowX]; | 43 *x = [controller_ infobarArrowX]; |
| 47 return ![controller_ shouldSuppressTopInfoBarTip]; | 44 return ![controller_ shouldSuppressTopInfoBarTip]; |
| 48 } | 45 } |
| OLD | NEW |