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

Unified Diff: ui/gfx/animation/multi_animation.h

Issue 1710253003: Misc. Tab-related cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better structure for #ifdefs Created 4 years, 10 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 | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | ui/gfx/animation/multi_animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/multi_animation.h
diff --git a/ui/gfx/animation/multi_animation.h b/ui/gfx/animation/multi_animation.h
index fd28e3864930c4a96fc3f55b283d72e3bf209d94..a74656989ea786206936ed3bbc7dd300a8e83e4c 100644
--- a/ui/gfx/animation/multi_animation.h
+++ b/ui/gfx/animation/multi_animation.h
@@ -33,11 +33,12 @@ class GFX_EXPORT MultiAnimation : public Animation {
// for 200ms with a % between .25 and .75 use the following three values: 200,
// 100, 400.
struct Part {
- Part() : time_ms(0), start_time_ms(0), end_time_ms(0), type(Tween::ZERO) {}
- Part(int time_ms, Tween::Type type)
+ Part() : Part(0, Tween::ZERO) {}
+ Part(int time_ms, Tween::Type type) : Part(time_ms, 0, time_ms, type) {}
+ Part(int time_ms, int start_time_ms, int end_time_ms, Tween::Type type)
: time_ms(time_ms),
- start_time_ms(0),
- end_time_ms(time_ms),
+ start_time_ms(start_time_ms),
+ end_time_ms(end_time_ms),
type(type) {}
int time_ms;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | ui/gfx/animation/multi_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698