| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ | 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ |
| 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ | 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ScrollbarAnimationControllerClient* client, | 33 ScrollbarAnimationControllerClient* client, |
| 34 base::TimeDelta delay_before_starting, | 34 base::TimeDelta delay_before_starting, |
| 35 base::TimeDelta resize_delay_before_starting, | 35 base::TimeDelta resize_delay_before_starting, |
| 36 base::TimeDelta duration); | 36 base::TimeDelta duration); |
| 37 | 37 |
| 38 void RunAnimationFrame(float progress) override; | 38 void RunAnimationFrame(float progress) override; |
| 39 const base::TimeDelta& Duration() override; | 39 const base::TimeDelta& Duration() override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 float OpacityAtTime(base::TimeTicks now) const; | 42 float OpacityAtTime(base::TimeTicks now) const; |
| 43 void ApplyOpacityToScrollbars(float opacity); | 43 void ApplyOpacityToScrollbars(float opacity) override; |
| 44 | 44 |
| 45 base::TimeDelta duration_; | 45 base::TimeDelta duration_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerLinearFade); | 47 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerLinearFade); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace cc | 50 } // namespace cc |
| 51 | 51 |
| 52 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ | 52 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_ |
| OLD | NEW |