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