Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Side by Side Diff: chrome/browser/chromeos/panels/panel_scroller_container.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/panels/panel_scroller.cc ('k') | chrome/browser/chromeos/panels/panel_scroller_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698