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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 LayerTreeHostImplClient* client, | 106 LayerTreeHostImplClient* client, |
107 Proxy* proxy, | 107 Proxy* proxy, |
108 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 108 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
109 SharedBitmapManager* manager, | 109 SharedBitmapManager* manager, |
110 int id); | 110 int id); |
111 virtual ~LayerTreeHostImpl(); | 111 virtual ~LayerTreeHostImpl(); |
112 | 112 |
113 // InputHandler implementation | 113 // InputHandler implementation |
114 virtual void BindToClient(InputHandlerClient* client) OVERRIDE; | 114 virtual void BindToClient(InputHandlerClient* client) OVERRIDE; |
115 virtual InputHandler::ScrollStatus ScrollBegin( | 115 virtual InputHandler::ScrollStatus ScrollBegin( |
116 gfx::Point viewport_point, | 116 const gfx::Point& viewport_point, |
117 InputHandler::ScrollInputType type) OVERRIDE; | 117 InputHandler::ScrollInputType type) OVERRIDE; |
118 virtual bool ScrollBy(gfx::Point viewport_point, | 118 virtual bool ScrollBy(const gfx::Point& viewport_point, |
119 const gfx::Vector2dF& scroll_delta) OVERRIDE; | 119 const gfx::Vector2dF& scroll_delta) OVERRIDE; |
120 virtual bool ScrollVerticallyByPage(gfx::Point viewport_point, | 120 virtual bool ScrollVerticallyByPage(const gfx::Point& viewport_point, |
121 ScrollDirection direction) OVERRIDE; | 121 ScrollDirection direction) OVERRIDE; |
122 virtual void SetRootLayerScrollOffsetDelegate( | 122 virtual void SetRootLayerScrollOffsetDelegate( |
123 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE; | 123 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE; |
124 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE; | 124 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE; |
125 virtual void ScrollEnd() OVERRIDE; | 125 virtual void ScrollEnd() OVERRIDE; |
126 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; | 126 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; |
127 virtual void NotifyCurrentFlingVelocity( | 127 virtual void NotifyCurrentFlingVelocity( |
128 const gfx::Vector2dF& velocity) OVERRIDE; | 128 const gfx::Vector2dF& velocity) OVERRIDE; |
129 virtual void MouseMoveAt(gfx::Point viewport_point) OVERRIDE; | 129 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; |
130 virtual void PinchGestureBegin() OVERRIDE; | 130 virtual void PinchGestureBegin() OVERRIDE; |
131 virtual void PinchGestureUpdate(float magnify_delta, | 131 virtual void PinchGestureUpdate(float magnify_delta, |
132 gfx::Point anchor) OVERRIDE; | 132 const gfx::Point& anchor) OVERRIDE; |
133 virtual void PinchGestureEnd() OVERRIDE; | 133 virtual void PinchGestureEnd() OVERRIDE; |
134 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 134 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
135 bool anchor_point, | 135 bool anchor_point, |
136 float page_scale, | 136 float page_scale, |
137 base::TimeDelta duration) OVERRIDE; | 137 base::TimeDelta duration) OVERRIDE; |
138 virtual void ScheduleAnimation() OVERRIDE; | 138 virtual void ScheduleAnimation() OVERRIDE; |
139 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; | 139 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) |
| 140 OVERRIDE; |
140 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 141 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
141 ui::LatencyInfo* latency) OVERRIDE; | 142 ui::LatencyInfo* latency) OVERRIDE; |
142 | 143 |
143 // TopControlsManagerClient implementation. | 144 // TopControlsManagerClient implementation. |
144 virtual void DidChangeTopControlsPosition() OVERRIDE; | 145 virtual void DidChangeTopControlsPosition() OVERRIDE; |
145 virtual bool HaveRootScrollLayer() const OVERRIDE; | 146 virtual bool HaveRootScrollLayer() const OVERRIDE; |
146 | 147 |
147 void StartScrollbarAnimation(); | 148 void StartScrollbarAnimation(); |
148 | 149 |
149 struct CC_EXPORT FrameData : public RenderPassSink { | 150 struct CC_EXPORT FrameData : public RenderPassSink { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 int id_; | 665 int id_; |
665 | 666 |
666 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 667 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
667 | 668 |
668 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 669 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
669 }; | 670 }; |
670 | 671 |
671 } // namespace cc | 672 } // namespace cc |
672 | 673 |
673 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 674 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |