OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ |
6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ | 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ |
7 | 7 |
8 #include "components/infobars/core/infobar_container.h" | 8 #include "components/infobars/core/infobar_container.h" |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
10 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" |
11 | 14 |
12 @class InfoBarContainerView; | 15 @class InfoBarContainerView; |
13 class InfoBarIOS; | 16 class InfoBarIOS; |
14 | 17 |
15 // IOS infobar container specialization, managing infobars visibility so | 18 // IOS infobar container specialization, managing infobars visibility so |
16 // that only the front most one is visible at any time. | 19 // that only the front most one is visible at any time. |
17 class InfoBarContainerIOS : public infobars::InfoBarContainer { | 20 class InfoBarContainerIOS : public infobars::InfoBarContainer { |
18 public: | 21 public: |
19 explicit InfoBarContainerIOS(infobars::InfoBarContainer::Delegate* delegate); | 22 explicit InfoBarContainerIOS(infobars::InfoBarContainer::Delegate* delegate); |
20 ~InfoBarContainerIOS() override; | 23 ~InfoBarContainerIOS() override; |
(...skipping 15 matching lines...) Expand all Loading... |
36 void PlatformSpecificInfoBarStateChanged(bool is_animating) override; | 39 void PlatformSpecificInfoBarStateChanged(bool is_animating) override; |
37 | 40 |
38 private: | 41 private: |
39 base::scoped_nsobject<InfoBarContainerView> container_view_; | 42 base::scoped_nsobject<InfoBarContainerView> container_view_; |
40 InfoBarContainer::Delegate* delegate_; | 43 InfoBarContainer::Delegate* delegate_; |
41 | 44 |
42 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerIOS); | 45 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerIOS); |
43 }; | 46 }; |
44 | 47 |
45 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ | 48 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_IOS_H_ |
OLD | NEW |