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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_cocoa.h

Issue 23338005: Mac InfoBar: Use cross platform infobar classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
7
8 #include "base/mac/scoped_nsobject.h"
9 #include "chrome/browser/infobars/infobar.h"
10
11 @class InfoBarController;
12
13 // The cocoa specific implementation of InfoBar. The real info bar logic is
14 // actually in InfoBarController.
15 class InfoBarCocoa : public InfoBar {
16 public:
17 InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate);
18
19 virtual ~InfoBarCocoa();
20
21 InfoBarController* controller() const { return controller_; }
22
23 void set_controller(InfoBarController* controller) {
24 controller_.reset([controller retain]);
25 }
26
27 // These functions allow access to protected InfoBar functions.
28 void RemoveSelfCocoa();
29 InfoBarService* OwnerCocoa();
30
31 private:
32 // The Objective-C class that contains most of the info bar logic.
33 base::scoped_nsobject<InfoBarController> controller_;
34
35 DISALLOW_COPY_AND_ASSIGN(InfoBarCocoa);
36 };
37
38 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar.h ('k') | chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698