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

Unified Diff: ash/wm/toplevel_frame_view.cc

Issue 9021046: Pass const gfx::Rect& as the first parameter to FillRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more fix Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/toplevel_frame_view.cc
diff --git a/ash/wm/toplevel_frame_view.cc b/ash/wm/toplevel_frame_view.cc
index 89fe70f01e3ad22517ba3722e8935f1db517480c..dcd1febb91df5fc47dbd10ef91ab9ec525bb8e5a 100644
--- a/ash/wm/toplevel_frame_view.cc
+++ b/ash/wm/toplevel_frame_view.cc
@@ -43,7 +43,7 @@ class WindowControlButton : public views::CustomButton {
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRect(GetBackgroundColor(), GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), GetBackgroundColor());
canvas->DrawBitmapInt(icon_, 0, 0);
}
virtual gfx::Size GetPreferredSize() OVERRIDE {
@@ -113,11 +113,11 @@ class FrameComponent : public views::View,
// Fill with current opacity value.
int opacity = animation_->CurrentValueBetween(kFrameBorderHiddenOpacity,
kFrameBorderVisibleOpacity);
- canvas->FillRect(SkColorSetARGB(opacity,
+ canvas->FillRect(GetLocalBounds(),
+ SkColorSetARGB(opacity,
SkColorGetR(kFrameColor),
SkColorGetG(kFrameColor),
- SkColorGetB(kFrameColor)),
- GetLocalBounds());
+ SkColorGetB(kFrameColor)));
}
// Overridden from ui::AnimationDelegate:
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.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