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

Side by Side Diff: cc/scrollbar_animation_controller_linear_fade.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_geometry_fixed_thumb.h » ('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 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 CCScrollbarAnimationControllerLinearFade_h 5 #ifndef CCScrollbarAnimationControllerLinearFade_h
6 #define CCScrollbarAnimationControllerLinearFade_h 6 #define CCScrollbarAnimationControllerLinearFade_h
7 7
8 #include "cc/cc_export.h"
8 #include "cc/scrollbar_animation_controller.h" 9 #include "cc/scrollbar_animation_controller.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 class ScrollbarAnimationControllerLinearFade : public ScrollbarAnimationControll er { 13 class CC_EXPORT ScrollbarAnimationControllerLinearFade : public ScrollbarAnimati onController {
13 public: 14 public:
14 static scoped_ptr<ScrollbarAnimationControllerLinearFade> create(LayerImpl* scrollLayer, double fadeoutDelay, double fadeoutLength); 15 static scoped_ptr<ScrollbarAnimationControllerLinearFade> create(LayerImpl* scrollLayer, double fadeoutDelay, double fadeoutLength);
15 16
16 virtual ~ScrollbarAnimationControllerLinearFade(); 17 virtual ~ScrollbarAnimationControllerLinearFade();
17 18
18 virtual bool animate(double monotonicTime) OVERRIDE; 19 virtual bool animate(double monotonicTime) OVERRIDE;
19 20
20 virtual void didPinchGestureUpdateAtTime(double monotonicTime) OVERRIDE; 21 virtual void didPinchGestureUpdateAtTime(double monotonicTime) OVERRIDE;
21 virtual void didPinchGestureEndAtTime(double monotonicTime) OVERRIDE; 22 virtual void didPinchGestureEndAtTime(double monotonicTime) OVERRIDE;
22 virtual void updateScrollOffsetAtTime(LayerImpl* scrollLayer, double monoton icTime) OVERRIDE; 23 virtual void updateScrollOffsetAtTime(LayerImpl* scrollLayer, double monoton icTime) OVERRIDE;
23 24
24 protected: 25 protected:
25 ScrollbarAnimationControllerLinearFade(LayerImpl* scrollLayer, double fadeou tDelay, double fadeoutLength); 26 ScrollbarAnimationControllerLinearFade(LayerImpl* scrollLayer, double fadeou tDelay, double fadeoutLength);
26 27
27 private: 28 private:
28 float opacityAtTime(double monotonicTime); 29 float opacityAtTime(double monotonicTime);
29 30
30 double m_lastAwakenTime; 31 double m_lastAwakenTime;
31 bool m_pinchGestureInEffect; 32 bool m_pinchGestureInEffect;
32 33
33 double m_fadeoutDelay; 34 double m_fadeoutDelay;
34 double m_fadeoutLength; 35 double m_fadeoutLength;
35 }; 36 };
36 37
37 } // namespace cc 38 } // namespace cc
38 39
39 #endif // CCScrollbarAnimationControllerLinearFade_h 40 #endif // CCScrollbarAnimationControllerLinearFade_h
OLDNEW
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_geometry_fixed_thumb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698