Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / infobars / infobar_container_cocoa.h
blob50d3633f3f3a6c4e4b9b9727103fb2ef16b8ce6b
1 // Copyright 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.
5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_
8 #include "chrome/browser/ui/infobar_container_delegate.h"
10 @class InfoBarContainerController;
12 // The cocoa specific implementation of InfoBarContainer. This mostly serves as
13 // a bridge for InfoBarContainerController.
14 class InfoBarContainerCocoa : public infobars::InfoBarContainer,
15 public InfoBarContainerDelegate {
16 public:
17 explicit InfoBarContainerCocoa(InfoBarContainerController* controller);
18 ~InfoBarContainerCocoa() override;
20 private:
21 // InfoBarContainer:
22 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
23 size_t position) override;
24 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override;
26 // InfoBarContainerDelegate:
27 SkColor GetInfoBarSeparatorColor() const override;
28 void InfoBarContainerStateChanged(bool is_animating) override;
29 bool DrawInfoBarArrows(int* x) const override;
31 InfoBarContainerController* controller_; // weak, owns us.
33 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa);
36 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_