| 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 CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
| 6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 class LayerTreeHostImpl : public InputHandlerClient, | 102 class LayerTreeHostImpl : public InputHandlerClient, |
| 103 public RendererClient, | 103 public RendererClient, |
| 104 public WebKit::WebCompositorOutputSurfaceClient { | 104 public WebKit::WebCompositorOutputSurfaceClient { |
| 105 typedef std::vector<LayerImpl*> LayerList; | 105 typedef std::vector<LayerImpl*> LayerList; |
| 106 | 106 |
| 107 public: | 107 public: |
| 108 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT
reeHostImplClient*); | 108 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT
reeHostImplClient*); |
| 109 virtual ~LayerTreeHostImpl(); | 109 virtual ~LayerTreeHostImpl(); |
| 110 | 110 |
| 111 // InputHandlerClient implementation | 111 // InputHandlerClient implementation |
| 112 virtual InputHandlerClient::ScrollStatus scrollBegin(const IntPoint&, InputH
andlerClient::ScrollInputType) OVERRIDE; | 112 virtual InputHandlerClient::ScrollStatus scrollBegin(const gfx::Point&, Inpu
tHandlerClient::ScrollInputType) OVERRIDE; |
| 113 virtual void scrollBy(const IntPoint&, const IntSize&) OVERRIDE; | 113 virtual void scrollBy(const gfx::Point&, const IntSize&) OVERRIDE; |
| 114 virtual void scrollEnd() OVERRIDE; | 114 virtual void scrollEnd() OVERRIDE; |
| 115 virtual void pinchGestureBegin() OVERRIDE; | 115 virtual void pinchGestureBegin() OVERRIDE; |
| 116 virtual void pinchGestureUpdate(float, const IntPoint&) OVERRIDE; | 116 virtual void pinchGestureUpdate(float, const IntPoint&) OVERRIDE; |
| 117 virtual void pinchGestureEnd() OVERRIDE; | 117 virtual void pinchGestureEnd() OVERRIDE; |
| 118 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool anc
horPoint, float pageScale, base::TimeTicks startTime, base::TimeDelta duration)
OVERRIDE; | 118 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool anc
horPoint, float pageScale, base::TimeTicks startTime, base::TimeDelta duration)
OVERRIDE; |
| 119 virtual void scheduleAnimation() OVERRIDE; | 119 virtual void scheduleAnimation() OVERRIDE; |
| 120 | 120 |
| 121 struct FrameData : public RenderPassSink { | 121 struct FrameData : public RenderPassSink { |
| 122 FrameData(); | 122 FrameData(); |
| 123 ~FrameData(); | 123 ~FrameData(); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 349 |
| 350 size_t m_numImplThreadScrolls; | 350 size_t m_numImplThreadScrolls; |
| 351 size_t m_numMainThreadScrolls; | 351 size_t m_numMainThreadScrolls; |
| 352 | 352 |
| 353 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 353 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 354 }; | 354 }; |
| 355 | 355 |
| 356 } // namespace cc | 356 } // namespace cc |
| 357 | 357 |
| 358 #endif | 358 #endif |
| OLD | NEW |