OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "app/animation.h" | 5 #include "app/animation.h" |
6 | 6 |
7 #include "app/animation_container.h" | 7 #include "app/animation_container.h" |
8 #include "app/animation_delegate.h" | 8 #include "app/animation_delegate.h" |
9 #include "app/tween.h" | 9 #include "app/tween.h" |
10 #include "gfx/rect.h" | 10 #include "gfx/rect.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The document states that the result is TRUE when animations are | 100 // The document states that the result is TRUE when animations are |
101 // _disabled_, but in fact, it is TRUE when they are _enabled_. | 101 // _disabled_, but in fact, it is TRUE when they are _enabled_. |
102 return !!result; | 102 return !!result; |
103 } | 103 } |
104 } | 104 } |
105 return !::GetSystemMetrics(SM_REMOTESESSION); | 105 return !::GetSystemMetrics(SM_REMOTESESSION); |
106 #endif | 106 #endif |
107 return true; | 107 return true; |
108 } | 108 } |
109 | 109 |
| 110 bool Animation::ShouldSendCanceledFromStop() { |
| 111 return false; |
| 112 } |
| 113 |
110 void Animation::SetStartTime(base::TimeTicks start_time) { | 114 void Animation::SetStartTime(base::TimeTicks start_time) { |
111 start_time_ = start_time; | 115 start_time_ = start_time; |
112 } | 116 } |
| 117 |
| 118 base::TimeDelta Animation::GetTimerInterval() const { |
| 119 return timer_interval_; |
| 120 } |
OLD | NEW |