blob: e0708520b92c51fcd3027395af9f1ac8bd059def (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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.
#include "chrome/browser/chromeos/panels/panel_scroller_container.h"
#include "gfx/canvas.h"
PanelScrollerContainer::PanelScrollerContainer(PanelScroller* scroller,
views::View* contents)
: views::View(),
scroller_(scroller),
contents_(contents) {
AddChildView(0, contents_);
// TODO(brettw) figure out memory management.
}
PanelScrollerContainer::~PanelScrollerContainer() {
}
gfx::Size PanelScrollerContainer::GetPreferredSize() {
return gfx::Size(100, 500);
}
void PanelScrollerContainer::Layout() {
}
void PanelScrollerContainer::Paint(gfx::Canvas* canvas) {
canvas->DrawLineInt(0xFF000080, 0, 0, size().width(), size().height());
}
|