Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |