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

Side by Side Diff: cc/input/scrollbar_animation_controller_linear_fade.h

Issue 2554913002: Prevent overlay scrollbars expand or hover together (Closed)
Patch Set: for weiliangc's nit Created 3 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/input/scrollbar_animation_controller.cc ('k') | cc/input/scrollbar_animation_controller_thinning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698