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 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
7 | 7 |
8 #include "components/infobars/core/infobar_container.h" | 8 #include "components/infobars/core/infobar_container.h" |
9 | 9 |
10 @class InfoBarContainerController; | 10 @class InfoBarContainerController; |
11 | 11 |
12 // The cocoa specific implementation of InfoBarContainer. This mostly serves as | 12 // The cocoa specific implementation of InfoBarContainer. This mostly serves as |
13 // a bridge for InfoBarContainerController. | 13 // a bridge for InfoBarContainerController. |
14 class InfoBarContainerCocoa : public infobars::InfoBarContainer, | 14 class InfoBarContainerCocoa : public infobars::InfoBarContainer, |
15 public infobars::InfoBarContainer::Delegate { | 15 public infobars::InfoBarContainer::Delegate { |
16 public: | 16 public: |
17 explicit InfoBarContainerCocoa(InfoBarContainerController* controller); | 17 explicit InfoBarContainerCocoa(InfoBarContainerController* controller); |
18 virtual ~InfoBarContainerCocoa(); | 18 ~InfoBarContainerCocoa() override; |
19 | 19 |
20 private: | 20 private: |
21 // InfoBarContainer: | 21 // InfoBarContainer: |
22 virtual void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, | 22 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, |
23 size_t position) override; | 23 size_t position) override; |
24 virtual void PlatformSpecificRemoveInfoBar( | 24 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override; |
25 infobars::InfoBar* infobar) override; | |
26 | 25 |
27 // InfoBarContainer::Delegate: | 26 // InfoBarContainer::Delegate: |
28 virtual SkColor GetInfoBarSeparatorColor() const override; | 27 SkColor GetInfoBarSeparatorColor() const override; |
29 virtual void InfoBarContainerStateChanged(bool is_animating) override; | 28 void InfoBarContainerStateChanged(bool is_animating) override; |
30 virtual bool DrawInfoBarArrows(int* x) const override; | 29 bool DrawInfoBarArrows(int* x) const override; |
31 | 30 |
32 InfoBarContainerController* controller_; // weak, owns us. | 31 InfoBarContainerController* controller_; // weak, owns us. |
33 | 32 |
34 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa); | 33 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa); |
35 }; | 34 }; |
36 | 35 |
37 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ | 36 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ |
OLD | NEW |