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

Side by Side Diff: cc/CCScrollbarAnimationController.h

Issue 10942040: Fix CC*Renderer and CC*LayerImpl to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 CCScrollbarAnimationController_h 5 #ifndef CCScrollbarAnimationController_h
6 #define CCScrollbarAnimationController_h 6 #define CCScrollbarAnimationController_h
7 7
8 #include "FloatPoint.h" 8 #include "FloatPoint.h"
9 #include "IntSize.h" 9 #include "IntSize.h"
10 #include <wtf/PassOwnPtr.h> 10 #include <wtf/PassOwnPtr.h>
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class CCLayerImpl; 14 class CCLayerImpl;
15 class CCScrollbarLayerImpl; 15 class CCScrollbarLayerImpl;
16 16
17 // This abstract class represents the compositor-side analogy of ScrollbarAnimat or. 17 // This abstract class represents the compositor-side analogy of ScrollbarAnimat or.
18 // Individual platforms should subclass it to provide specialized implementation . 18 // Individual platforms should subclass it to provide specialized implementation .
19 class CCScrollbarAnimationController { 19 class CCScrollbarAnimationController {
20 public: 20 public:
21 // Implemented by subclass. 21 // Implemented by subclass.
22 static PassOwnPtr<CCScrollbarAnimationController> create(CCLayerImpl* scroll Layer); 22 static PassOwnPtr<CCScrollbarAnimationController> create(CCLayerImpl* scroll Layer);
23 23
24 virtual ~CCScrollbarAnimationController(); 24 virtual ~CCScrollbarAnimationController();
25 25
26 virtual bool animate(double monotonicTime) { return false; } 26 virtual bool animate(double monotonicTime);
27 void didPinchGestureBegin(); 27 void didPinchGestureBegin();
28 void didPinchGestureUpdate(); 28 void didPinchGestureUpdate();
29 void didPinchGestureEnd(); 29 void didPinchGestureEnd();
30 void updateScrollOffset(CCLayerImpl* scrollLayer); 30 void updateScrollOffset(CCLayerImpl* scrollLayer);
31 31
32 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_horizontal ScrollbarLayer = layer; } 32 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_horizontal ScrollbarLayer = layer; }
33 CCScrollbarLayerImpl* horizontalScrollbarLayer() const { return m_horizontal ScrollbarLayer; } 33 CCScrollbarLayerImpl* horizontalScrollbarLayer() const { return m_horizontal ScrollbarLayer; }
34 34
35 void setVerticalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_verticalScro llbarLayer = layer; } 35 void setVerticalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_verticalScro llbarLayer = layer; }
36 CCScrollbarLayerImpl* verticalScrollbarLayer() const { return m_verticalScro llbarLayer; } 36 CCScrollbarLayerImpl* verticalScrollbarLayer() const { return m_verticalScro llbarLayer; }
(...skipping 18 matching lines...) Expand all
55 CCScrollbarLayerImpl* m_verticalScrollbarLayer; 55 CCScrollbarLayerImpl* m_verticalScrollbarLayer;
56 56
57 FloatPoint m_currentPos; 57 FloatPoint m_currentPos;
58 IntSize m_totalSize; 58 IntSize m_totalSize;
59 IntSize m_maximum; 59 IntSize m_maximum;
60 }; 60 };
61 61
62 } // namespace cc 62 } // namespace cc
63 63
64 #endif // CCScrollbarAnimationController_h 64 #endif // CCScrollbarAnimationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698