1// Copyright (c) 2009 The Chromium Authors. All rights reserved.  Use of this
2// source code is governed by a BSD-style license that can be found in the
3// LICENSE file.
4
5#include "chrome/browser/chromeos/panels/panel_scroller_container.h"
6
7#include "ui/gfx/canvas.h"
8
9PanelScrollerContainer::PanelScrollerContainer(PanelScroller* scroller,
10                                               views::View* contents)
11    : views::View(),
12      scroller_(scroller),
13      contents_(contents) {
14  AddChildViewAt(contents_, 0);
15  // TODO(brettw) figure out memory management.
16}
17
18PanelScrollerContainer::~PanelScrollerContainer() {
19}
20
21gfx::Size PanelScrollerContainer::GetPreferredSize() {
22  return gfx::Size(100, 500);
23}
24
25void PanelScrollerContainer::Layout() {
26}
27
28void PanelScrollerContainer::OnPaint(gfx::Canvas* canvas) {
29  canvas->DrawLineInt(0xFF000080, 0, 0, size().width(), size().height());
30}
31