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

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, 4 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_
Robert Sesek 2013/08/26 14:06:56 Needs documentation.
sail 2013/08/26 18:32:23 Done.
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 class InfoBarCocoa : public InfoBar {
14 public:
15 InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate);
16
17 virtual ~InfoBarCocoa();
18
19 InfoBarController* controller() const { return controller_; }
20
21 void set_controller(InfoBarController* controller) {
22 controller_.reset([controller retain]);
23 }
24
25 // These functions allow access to protected InfoBar functions.
26 void RemoveSelfCocoa();
27 InfoBarService* OwnerCocoa();
28
29 private:
30 base::scoped_nsobject<InfoBarController> controller_;
31
32 DISALLOW_COPY_AND_ASSIGN(InfoBarCocoa);
33 };
34
35 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698