// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_ #include "chrome/browser/ui/infobar_container_delegate.h" @class InfoBarContainerController; // The cocoa specific implementation of InfoBarContainer. This mostly serves as // a bridge for InfoBarContainerController. class InfoBarContainerCocoa : public infobars::InfoBarContainer, public InfoBarContainerDelegate { public: explicit InfoBarContainerCocoa(InfoBarContainerController* controller); ~InfoBarContainerCocoa() override; private: // InfoBarContainer: void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, size_t position) override; void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override; // InfoBarContainerDelegate: SkColor GetInfoBarSeparatorColor() const override; void InfoBarContainerStateChanged(bool is_animating) override; bool DrawInfoBarArrows(int* x) const override; InfoBarContainerController* controller_; // weak, owns us. DISALLOW_COPY_AND_ASSIGN(InfoBarContainerCocoa); }; #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_CONTAINER_COCOA_H_