[Extensions] Make extension message bubble factory platform-abstract
[chromium-blink-merge.git] / chrome / browser / ui / views / infobars / infobar_container_view.h
blob0ffc46bb98f4f8e2445a3e21072bb6e635d73b22
1 // Copyright (c) 2011 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_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
8 #include "components/infobars/core/infobar_container.h"
9 #include "ui/views/accessible_pane_view.h"
11 // The views-specific implementation of InfoBarContainer.
12 class InfoBarContainerView : public views::AccessiblePaneView,
13 public infobars::InfoBarContainer {
14 public:
15 static const char kViewClassName[];
17 explicit InfoBarContainerView(Delegate* delegate);
18 ~InfoBarContainerView() override;
20 private:
21 // AccessiblePaneView:
22 gfx::Size GetPreferredSize() const override;
23 const char* GetClassName() const override;
24 void Layout() override;
25 void GetAccessibleState(ui::AXViewState* state) override;
27 // InfobarContainer:
28 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
29 size_t position) override;
30 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override;
32 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView);
35 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_