| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 public RendererClient, | 104 public RendererClient, |
| 105 public NON_EXPORTED_BASE(WebKit::WebComposit
orOutputSurfaceClient) { | 105 public NON_EXPORTED_BASE(WebKit::WebComposit
orOutputSurfaceClient) { |
| 106 typedef std::vector<LayerImpl*> LayerList; | 106 typedef std::vector<LayerImpl*> LayerList; |
| 107 | 107 |
| 108 public: | 108 public: |
| 109 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT
reeHostImplClient*, Proxy*); | 109 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT
reeHostImplClient*, Proxy*); |
| 110 virtual ~LayerTreeHostImpl(); | 110 virtual ~LayerTreeHostImpl(); |
| 111 | 111 |
| 112 // InputHandlerClient implementation | 112 // InputHandlerClient implementation |
| 113 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle
rClient::ScrollInputType) OVERRIDE; | 113 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle
rClient::ScrollInputType) OVERRIDE; |
| 114 virtual void scrollBy(gfx::Point, gfx::Vector2d) OVERRIDE; | 114 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) OVERRIDE; |
| 115 virtual void scrollEnd() OVERRIDE; | 115 virtual void scrollEnd() OVERRIDE; |
| 116 virtual void pinchGestureBegin() OVERRIDE; | 116 virtual void pinchGestureBegin() OVERRIDE; |
| 117 virtual void pinchGestureUpdate(float, gfx::Point) OVERRIDE; | 117 virtual void pinchGestureUpdate(float, gfx::Point) OVERRIDE; |
| 118 virtual void pinchGestureEnd() OVERRIDE; | 118 virtual void pinchGestureEnd() OVERRIDE; |
| 119 virtual void startPageScaleAnimation(gfx::Vector2d targetPosition, bool anch
orPoint, float pageScale, base::TimeTicks startTime, base::TimeDelta duration) O
VERRIDE; | 119 virtual void startPageScaleAnimation(gfx::Vector2d targetPosition, bool anch
orPoint, float pageScale, base::TimeTicks startTime, base::TimeDelta duration) O
VERRIDE; |
| 120 virtual void scheduleAnimation() OVERRIDE; | 120 virtual void scheduleAnimation() OVERRIDE; |
| 121 | 121 |
| 122 struct CC_EXPORT FrameData : public RenderPassSink { | 122 struct CC_EXPORT FrameData : public RenderPassSink { |
| 123 FrameData(); | 123 FrameData(); |
| 124 ~FrameData(); | 124 ~FrameData(); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 353 |
| 354 size_t m_numImplThreadScrolls; | 354 size_t m_numImplThreadScrolls; |
| 355 size_t m_numMainThreadScrolls; | 355 size_t m_numMainThreadScrolls; |
| 356 | 356 |
| 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 } // namespace cc | 360 } // namespace cc |
| 361 | 361 |
| 362 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 362 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |