Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: ios/chrome/browser/infobars/infobar.h

Issue 1161243002: Fixit: Cleanup of InfoBarController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding mising forward declaration. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/infobars/core/infobar.h" 9 #include "components/infobars/core/infobar.h"
10 #include "components/infobars/core/infobar_delegate.h"
11 #include "ios/chrome/browser/infobars/infobar_controller.h"
12 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" 10 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h"
13 11
12 @class InfoBarController;
13 @class UIView;
14 namespace infobars {
15 class InfoBarDelegate;
16 }
17
14 // InfoBar for iOS acts as a UIViewController for InfoBarView. 18 // InfoBar for iOS acts as a UIViewController for InfoBarView.
15 class InfoBarIOS : public infobars::InfoBar, public InfoBarViewDelegate { 19 class InfoBarIOS : public infobars::InfoBar, public InfoBarViewDelegate {
16 public: 20 public:
17 explicit InfoBarIOS(scoped_ptr<infobars::InfoBarDelegate> delegate); 21 explicit InfoBarIOS(scoped_ptr<infobars::InfoBarDelegate> delegate);
18 ~InfoBarIOS() override; 22 ~InfoBarIOS() override;
19 23
20 // Layouts the infobar using data from delegate and prepare it for adding to 24 // Layouts the infobar using data from delegate and prepare it for adding to
21 // superview. 25 // superview.
22 void Layout(CGRect container_bounds); 26 void Layout(CGRect container_bounds);
23 27
(...skipping 13 matching lines...) Expand all
37 // InfoBarViewDelegate: 41 // InfoBarViewDelegate:
38 void SetInfoBarTargetHeight(int height) override; 42 void SetInfoBarTargetHeight(int height) override;
39 void InfoBarDidCancel() override; 43 void InfoBarDidCancel() override;
40 void InfoBarButtonDidPress(NSUInteger button_id) override; 44 void InfoBarButtonDidPress(NSUInteger button_id) override;
41 45
42 base::scoped_nsobject<InfoBarController> controller_; 46 base::scoped_nsobject<InfoBarController> controller_;
43 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS); 47 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS);
44 }; 48 };
45 49
46 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ 50 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/infobars/confirm_infobar_controller.mm ('k') | ios/chrome/browser/infobars/infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698