1 // Copyright (c) 2010 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. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 7 #pragma once 8 9 #include "base/basictypes.h" 10 #include "views/view.h" 11 12 class PanelScroller; 13 14 // This class wraps the contents of a panel in the panel scroller. It currently 15 // doesn't do anything useful, but it just a placeholder. 16 class PanelScrollerContainer : public views::View { 17 public: 18 PanelScrollerContainer(PanelScroller* scroller, views::View* contents); 19 virtual ~PanelScrollerContainer(); 20 21 int HeaderSize() const; 22 23 // view::View overrides. 24 virtual gfx::Size GetPreferredSize(); 25 virtual void Layout(); 26 virtual void OnPaint(gfx::Canvas* canvas); 27 28 private: 29 // Non-owning pointer to our parent scroller object. 30 PanelScroller* scroller_; 31 32 views::View* contents_; 33 34 DISALLOW_COPY_AND_ASSIGN(PanelScrollerContainer); 35 }; 36 37 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ 38