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

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

Issue 2596813002: Remove ChromeBrowserProvider::CreateInfoBarView() method. (Closed)
Patch Set: Created 4 years 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 <memory> 8 #include <memory>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/infobars/core/infobar.h" 12 #include "components/infobars/core/infobar.h"
13 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" 13 #import "ios/chrome/browser/ui/infobars/infobar_view_delegate.h"
14 14
15 @class InfoBarController; 15 @class InfoBarController;
16 @class UIView; 16 @class UIView;
17 namespace infobars { 17 namespace infobars {
18 class InfoBarDelegate; 18 class InfoBarDelegate;
19 } 19 }
20 20
21 // InfoBar for iOS acts as a UIViewController for InfoBarView. 21 // InfoBar for iOS acts as a UIViewController for InfoBarView.
22 class InfoBarIOS : public infobars::InfoBar, public InfoBarViewDelegate { 22 class InfoBarIOS : public infobars::InfoBar, public InfoBarViewDelegate {
23 public: 23 public:
(...skipping 20 matching lines...) Expand all
44 // InfoBarViewDelegate: 44 // InfoBarViewDelegate:
45 void SetInfoBarTargetHeight(int height) override; 45 void SetInfoBarTargetHeight(int height) override;
46 void InfoBarDidCancel() override; 46 void InfoBarDidCancel() override;
47 void InfoBarButtonDidPress(NSUInteger button_id) override; 47 void InfoBarButtonDidPress(NSUInteger button_id) override;
48 48
49 base::scoped_nsobject<InfoBarController> controller_; 49 base::scoped_nsobject<InfoBarController> controller_;
50 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS); 50 DISALLOW_COPY_AND_ASSIGN(InfoBarIOS);
51 }; 51 };
52 52
53 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_ 53 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698