| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "components/infobars/core/infobar_container.h" | 11 #include "components/infobars/core/infobar_container.h" |
| 9 #include "ui/views/accessible_pane_view.h" | 12 #include "ui/views/accessible_pane_view.h" |
| 10 | 13 |
| 11 // The views-specific implementation of InfoBarContainer. | 14 // The views-specific implementation of InfoBarContainer. |
| 12 class InfoBarContainerView : public views::AccessiblePaneView, | 15 class InfoBarContainerView : public views::AccessiblePaneView, |
| 13 public infobars::InfoBarContainer { | 16 public infobars::InfoBarContainer { |
| 14 public: | 17 public: |
| 15 static const char kViewClassName[]; | 18 static const char kViewClassName[]; |
| 16 | 19 |
| 17 explicit InfoBarContainerView(Delegate* delegate); | 20 explicit InfoBarContainerView(Delegate* delegate); |
| 18 ~InfoBarContainerView() override; | 21 ~InfoBarContainerView() override; |
| 19 | 22 |
| 20 private: | 23 private: |
| 21 // AccessiblePaneView: | 24 // AccessiblePaneView: |
| 22 gfx::Size GetPreferredSize() const override; | 25 gfx::Size GetPreferredSize() const override; |
| 23 const char* GetClassName() const override; | 26 const char* GetClassName() const override; |
| 24 void Layout() override; | 27 void Layout() override; |
| 25 void GetAccessibleState(ui::AXViewState* state) override; | 28 void GetAccessibleState(ui::AXViewState* state) override; |
| 26 | 29 |
| 27 // InfobarContainer: | 30 // InfobarContainer: |
| 28 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, | 31 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, |
| 29 size_t position) override; | 32 size_t position) override; |
| 30 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override; | 33 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override; |
| 31 | 34 |
| 32 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); | 35 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); |
| 33 }; | 36 }; |
| 34 | 37 |
| 35 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ | 38 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ |
| OLD | NEW |