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

Unified Diff: views/window/custom_frame_view.cc

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: views/window/custom_frame_view.cc
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc
index 1b23eed7ed204d40a06f7229013b222b170f17bc..052d27f9b821d9daf4fcefb0679a222336dd02ab 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -476,9 +476,11 @@ 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(ResourceBundle::toolbar_color,
+ gfx::Rect(client_area_bounds.x() - 1,
+ client_area_top - 1,
+ client_area_bounds.width() + 1,
+ client_area_bottom - client_area_top + 1));
}
void CustomFrameView::LayoutWindowControls() {
« ui/gfx/canvas_skia_win.cc ('K') | « views/touchui/touch_selection_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698