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

Side by Side Diff: ui/gfx/animation/animation_container.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_timer_provider.cc ('k') | ui/gfx/screen_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_ 5 #ifndef UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_
6 #define UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_ 6 #define UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // fired this is the time the animation was added. 72 // fired this is the time the animation was added.
73 // . The time the last animation ran at (::Run was invoked). 73 // . The time the last animation ran at (::Run was invoked).
74 base::TimeTicks last_tick_time_; 74 base::TimeTicks last_tick_time_;
75 75
76 // Set of elements (animations) being managed. 76 // Set of elements (animations) being managed.
77 Elements elements_; 77 Elements elements_;
78 78
79 // Minimum interval the timers run at. 79 // Minimum interval the timers run at.
80 base::TimeDelta min_timer_interval_; 80 base::TimeDelta min_timer_interval_;
81 81
82 base::RepeatingTimer<AnimationContainer> timer_; 82 base::RepeatingTimer timer_;
83 83
84 AnimationContainerObserver* observer_; 84 AnimationContainerObserver* observer_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(AnimationContainer); 86 DISALLOW_COPY_AND_ASSIGN(AnimationContainer);
87 }; 87 };
88 88
89 } // namespace gfx 89 } // namespace gfx
90 90
91 #endif // UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_ 91 #endif // UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_timer_provider.cc ('k') | ui/gfx/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698