Chromium Code Reviews| Index: chrome/browser/ui/views/infobars/infobar_container.h |
| diff --git a/chrome/browser/ui/views/infobars/infobar_container.h b/chrome/browser/ui/views/infobars/infobar_container.h |
| index 071519267f8a8cce8ae46f2d4cede6efa69faafa..6c916a5b3e687ec9dba156dc6227c63025a0e531 100644 |
| --- a/chrome/browser/ui/views/infobars/infobar_container.h |
| +++ b/chrome/browser/ui/views/infobars/infobar_container.h |
| @@ -34,9 +34,29 @@ class InfoBarContainer : public AccessiblePaneView, |
| virtual ~Delegate(); |
| }; |
| + class Heights { |
|
Peter Kasting
2011/03/04 22:23:42
I think it would be clearer to write the InfoBarCo
Sheridan Rawlins
2011/03/05 18:06:54
The reason for the class was that the layout code
|
| + public: |
| + Heights(int tab_height, int bar_height) |
| + : tab_height_(tab_height), |
| + bar_height_(bar_height) {} |
| + |
| + int tab_height() const { return tab_height_; } |
| + int bar_height() const { return bar_height_; } |
| + int height() const { return tab_height_ + bar_height_; } |
| + |
| + private: |
| + friend class InfoBarContainer; |
| + |
| + int tab_height_; |
| + int bar_height_; |
| + }; |
| + |
| explicit InfoBarContainer(Delegate* delegate); |
| virtual ~InfoBarContainer(); |
| + // Return the tab and bar heights for this infobar container. |
| + Heights GetHeights() const; |
| + |
| // Changes the TabContents for which this container is showing infobars. This |
| // will remove all current infobars from the container, add the infobars from |
| // |contents|, and show them all. |contents| may be NULL. |
| @@ -57,13 +77,6 @@ class InfoBarContainer : public AccessiblePaneView, |
| // hidden. |
| void RemoveInfoBar(InfoBarView* infobar); |
| - // Paint the InfoBar arrows on |canvas|. |arrow_center_x| indicates |
| - // the desired location of the center of the arrow in the |
| - // |outer_view| coordinate system. |
| - void PaintInfoBarArrows(gfx::Canvas* canvas, |
| - View* outer_view, |
| - int arrow_center_x); |
| - |
| private: |
| typedef std::set<InfoBarView*> InfoBars; |