Chromium Code Reviews| 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. This mostly serves as | |
| 13 // a bridge for InfoBarContainerController. | |
| 14 class InfoBarContainerCocoa : public InfoBarContainer, | |
| 15 public InfoBarContainer::Delegate { | |
| 16 public: | |
| 17 InfoBarContainerCocoa(InfoBarContainerController* controller); | |
|
Robert Sesek
2013/08/26 19:35:02
explicit
sail
2013/08/26 21:58:44
Done.
| |
| 18 virtual ~InfoBarContainerCocoa(); | |
| 19 | |
| 20 private: | |
| 21 // InfoBarContainer: | |
| 22 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, | |
| 23 size_t position) OVERRIDE; | |
| 24 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; | |
| 25 | |
| 26 // InfoBarContainer::Delegate: | |
| 27 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; | |
| 28 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; | |
| 29 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; | |
| 30 | |
| 31 InfoBarContainerController* controller_; // weak, owns us. | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa); | |
| 34 }; | |
| 35 | |
| 36 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ | |
| OLD | NEW |