| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
| 7 |
| 8 #include "chrome/browser/infobars/infobar_container.h" |
| 9 |
| 10 @class InfoBarContainerController; |
| 11 |
| 12 // The cocoa specific implementation of InfoBarContainer. |
| 13 class InfoBarContainerCocoa : public InfoBarContainer, |
| 14 public InfoBarContainer::Delegate { |
| 15 public: |
| 16 InfoBarContainerCocoa(InfoBarContainerController* controller); |
| 17 virtual ~InfoBarContainerCocoa(); |
| 18 |
| 19 private: |
| 20 // InfoBarContainer: |
| 21 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, |
| 22 size_t position) OVERRIDE; |
| 23 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; |
| 24 |
| 25 // InfoBarContainer::Delegate: |
| 26 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; |
| 27 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; |
| 28 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; |
| 29 |
| 30 InfoBarContainerController* controller_; // weak, owns us. |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa); |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
| OLD | NEW |