summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/panels
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 00:11:05 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 00:11:05 +0000
commite728d1dbb22389af68d1adad7b18b985cde3bba1 (patch)
treeb760162eea5504ac6fe637e2cc6d9a0f62b07432 /chrome/browser/chromeos/panels
parent6b1ac06375f8f41be58938a5e94bcf5af0086ee2 (diff)
downloadchromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.zip
chromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.tar.gz
chromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.tar.bz2
ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect.
BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8405002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/panels')
-rw-r--r--chrome/browser/chromeos/panels/panel_scroller_header.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/panels/panel_scroller_header.cc b/chrome/browser/chromeos/panels/panel_scroller_header.cc
index 12de46e..93f8a04 100644
--- a/chrome/browser/chromeos/panels/panel_scroller_header.cc
+++ b/chrome/browser/chromeos/panels/panel_scroller_header.cc
@@ -40,11 +40,11 @@ gfx::Size PanelScrollerHeader::GetPreferredSize() {
void PanelScrollerHeader::OnPaint(gfx::Canvas* canvas) {
// TODO(brettw) fill this out with real styling.
- canvas->FillRectInt(0xFFFFFFFF, 0, 0, size().width(), size().height());
+ canvas->FillRect(0xFFFFFFFF, GetLocalBounds());
canvas->DrawLineInt(0xFFE6E6E6, 0, size().height() - 1,
size().width(), size().height() - 1);
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
gfx::Font font =
rb.GetFont(ResourceBundle::BaseFont).DeriveFont(0, gfx::Font::BOLD);
int font_top = 1;