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

Unified Diff: ui/views/corewm/window_animations.h

Issue 105673008: Remove unneeded ScopedLayerAnimationSettings::LockTransitionDuration() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ui/compositor/scoped_layer_animation_settings.cc ('k') | ui/views/corewm/window_animations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_animations.h
diff --git a/ui/views/corewm/window_animations.h b/ui/views/corewm/window_animations.h
index 996c215dc89b0a4856d14f3704eaef83cac40174..4a0a30b10ed877ae47558b7be82aab79baf0a7d4 100644
--- a/ui/views/corewm/window_animations.h
+++ b/ui/views/corewm/window_animations.h
@@ -70,10 +70,28 @@ VIEWS_EXPORT bool HasWindowVisibilityAnimationTransition(
aura::Window* window,
WindowVisibilityAnimationTransition transition);
-VIEWS_EXPORT void SetWindowVisibilityAnimationDuration(
+// Sets the duration of |window|'s show animation.
+VIEWS_EXPORT void SetWindowShowAnimationDuration(
aura::Window* window,
const base::TimeDelta& duration);
+// Sets the duration of |window|'s hide animation.
+VIEWS_EXPORT void SetWindowHideAnimationDuration(
+ aura::Window* window,
+ const base::TimeDelta& duration);
+
+// Returns the duration of |window|'s show animation if it is set and
+// |default_duration| otherwise.
+VIEWS_EXPORT base::TimeDelta GetWindowShowAnimationDuration(
+ aura::Window* window,
+ const base::TimeDelta& default_duration);
+
+// Returns the duration of |window|'s hide animation duration if it is set and
+// |default_duration| otherwise.
+VIEWS_EXPORT base::TimeDelta GetWindowHideAnimationDuration(
+ aura::Window* window,
+ const base::TimeDelta& default_duration);
+
VIEWS_EXPORT void SetWindowVisibilityAnimationVerticalPosition(
aura::Window* window,
float position);
« no previous file with comments | « ui/compositor/scoped_layer_animation_settings.cc ('k') | ui/views/corewm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698