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_H_ | 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ | 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
7 | 7 |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/macros.h" |
9 #include "components/infobars/core/infobar.h" | 10 #include "components/infobars/core/infobar.h" |
10 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" | 11 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" |
11 | 12 |
12 @class InfoBarController; | 13 @class InfoBarController; |
13 @class UIView; | 14 @class UIView; |
14 namespace infobars { | 15 namespace infobars { |
15 class InfoBarDelegate; | 16 class InfoBarDelegate; |
16 } | 17 } |
17 | 18 |
18 // InfoBar for iOS acts as a UIViewController for InfoBarView. | 19 // InfoBar for iOS acts as a UIViewController for InfoBarView. |
(...skipping 22 matching lines...) Expand all Loading... |
41 // InfoBarViewDelegate: | 42 // InfoBarViewDelegate: |
42 void SetInfoBarTargetHeight(int height) override; | 43 void SetInfoBarTargetHeight(int height) override; |
43 void InfoBarDidCancel() override; | 44 void InfoBarDidCancel() override; |
44 void InfoBarButtonDidPress(NSUInteger button_id) override; | 45 void InfoBarButtonDidPress(NSUInteger button_id) override; |
45 | 46 |
46 base::scoped_nsobject<InfoBarController> controller_; | 47 base::scoped_nsobject<InfoBarController> controller_; |
47 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS); | 48 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS); |
48 }; | 49 }; |
49 | 50 |
50 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ | 51 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
OLD | NEW |