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
PanelScrollerContainer(PanelScroller * scroller,views::View * contents)9 PanelScrollerContainer::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
~PanelScrollerContainer()18 PanelScrollerContainer::~PanelScrollerContainer() {
19 }
20
GetPreferredSize()21 gfx::Size PanelScrollerContainer::GetPreferredSize() {
22 return gfx::Size(100, 500);
23 }
24
Layout()25 void PanelScrollerContainer::Layout() {
26 }
27
OnPaint(gfx::Canvas * canvas)28 void PanelScrollerContainer::OnPaint(gfx::Canvas* canvas) {
29 canvas->DrawLineInt(0xFF000080, 0, 0, size().width(), size().height());
30 }
31