summaryrefslogtreecommitdiffstats
path: root/ui/views/window
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 02:09:48 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 02:09:48 +0000
commit212e688d11b29489d00319a52eea8e28ba26c599 (patch)
treedbdbd1e297e0d9cae7c6c697eb544ab4b341b12e /ui/views/window
parent69c88e180549a1156037f22bd46f4937d3c1d3d7 (diff)
downloadchromium_src-212e688d11b29489d00319a52eea8e28ba26c599.zip
chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.gz
chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.bz2
ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect.
BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8476019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/window')
-rw-r--r--ui/views/window/custom_frame_view.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc
index fae0d2f..6c56db1 100644
--- a/ui/views/window/custom_frame_view.cc
+++ b/ui/views/window/custom_frame_view.cc
@@ -484,9 +484,10 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) {
client_area_top, left->width(), client_area_height);
// Draw the toolbar color to fill in the edges.
- canvas->DrawRectInt(ResourceBundle::toolbar_color,
- client_area_bounds.x() - 1, client_area_top - 1,
- client_area_bounds.width() + 1, client_area_bottom - client_area_top + 1);
+ canvas->DrawRect(gfx::Rect(client_area_bounds.x() - 1, client_area_top - 1,
+ client_area_bounds.width() + 1,
+ client_area_bottom - client_area_top + 1),
+ ui::ResourceBundle::toolbar_color);
}
void CustomFrameView::LayoutWindowControls() {