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 "chrome/browser/infobars/infobar_container.h" | 8 #include "chrome/browser/infobars/infobar_container.h" |
9 #include "ui/views/accessible_pane_view.h" | 9 #include "ui/views/accessible_pane_view.h" |
10 | 10 |
11 // The views-specific implementation of InfoBarContainer. | 11 // The views-specific implementation of InfoBarContainer. |
12 class InfoBarContainerView : public views::AccessiblePaneView, | 12 class InfoBarContainerView : public views::AccessiblePaneView, |
13 public InfoBarContainer { | 13 public InfoBarContainer { |
14 public: | 14 public: |
15 static const char kViewClassName[]; | 15 static const char kViewClassName[]; |
16 | 16 |
17 explicit InfoBarContainerView(Delegate* delegate, | 17 explicit InfoBarContainerView(Delegate* delegate, |
18 chrome::search::SearchModel* search_model); | 18 chrome::search::SearchModel* search_model, |
dhollowa
2013/01/25 21:24:08
const
Peter Kasting
2013/01/28 21:51:00
The opposite (make |instant_model| non-const)
kuan
2013/01/29 00:17:08
dhollowa@ will fix the constness in InstantModel a
| |
19 const InstantModel* instant_model); | |
19 virtual ~InfoBarContainerView(); | 20 virtual ~InfoBarContainerView(); |
20 | 21 |
21 private: | 22 private: |
22 // AccessiblePaneView: | 23 // AccessiblePaneView: |
23 virtual gfx::Size GetPreferredSize() OVERRIDE; | 24 virtual gfx::Size GetPreferredSize() OVERRIDE; |
24 virtual std::string GetClassName() const OVERRIDE; | 25 virtual std::string GetClassName() const OVERRIDE; |
25 virtual void Layout() OVERRIDE; | 26 virtual void Layout() OVERRIDE; |
26 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 27 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
27 | 28 |
28 // InfobarContainer: | 29 // InfobarContainer: |
29 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, | 30 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, |
30 size_t position) OVERRIDE; | 31 size_t position) OVERRIDE; |
31 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; | 32 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); | 34 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); |
34 }; | 35 }; |
35 | 36 |
36 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ | 37 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ |
OLD | NEW |