summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/panels/panel_scroller_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/panels/panel_scroller_container.h')
-rw-r--r--chrome/browser/chromeos/panels/panel_scroller_container.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/panels/panel_scroller_container.h b/chrome/browser/chromeos/panels/panel_scroller_container.h
new file mode 100644
index 0000000..5007e95
--- /dev/null
+++ b/chrome/browser/chromeos/panels/panel_scroller_container.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in the
+// LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
+#define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
+
+#include "base/basictypes.h"
+#include "views/view.h"
+
+class PanelScroller;
+
+// This class wraps the contents of a panel in the panel scroller. It currently
+// doesn't do anything useful, but it just a placeholder.
+class PanelScrollerContainer : public views::View {
+ public:
+ PanelScrollerContainer(PanelScroller* scroller, views::View* contents);
+ virtual ~PanelScrollerContainer();
+
+ int HeaderSize() const;
+
+ // view::View overrides.
+ virtual gfx::Size GetPreferredSize();
+ virtual void Layout();
+ virtual void Paint(gfx::Canvas* canvas);
+
+ private:
+ // Non-owning pointer to our parent scroller object.
+ PanelScroller* scroller_;
+
+ views::View* contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(PanelScrollerContainer);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_
+