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

Unified Diff: views/animator.cc

Issue 155170: Fix the Views GTK build. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « views/animator.h ('k') | views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/animator.cc
diff --git a/views/animator.cc b/views/animator.cc
index 2b2a7db7bfe11250569fefe01c2fb60f698aa9e4..177b0e150e9c50eaf91d7ef51d6022e72ecf41b6 100644
--- a/views/animator.cc
+++ b/views/animator.cc
@@ -84,6 +84,12 @@ void Animator::AnimateToBounds(const gfx::Rect& bounds, int direction) {
animation_->Show();
}
+void Animator::AnimateToBounds(int x, int y, int width, int height,
+ int direction) {
+ AnimateToBounds(gfx::Rect(x, y, std::max(0, width), std::max(0, height)),
+ direction);
+}
+
////////////////////////////////////////////////////////////////////////////////
// Animator, AnimationDelegate:
« no previous file with comments | « views/animator.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698