blob: e3b3caf67c46cb8c708841678b8be96038924733 (
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 "ui/gfx/canvas.h"
PanelScrollerContainer::PanelScrollerContainer(PanelScroller* scroller,
views::View* contents)
: views::View(),
scroller_(scroller),
contents_(contents) {
AddChildViewAt(contents_, 0);
// 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());
}
|