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_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 169 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
170 | 170 |
171 PrioritizedResourceManager* contentsTextureManager() const; | 171 PrioritizedResourceManager* contentsTextureManager() const; |
172 | 172 |
173 bool visible() const { return m_visible; } | 173 bool visible() const { return m_visible; } |
174 void setVisible(bool); | 174 void setVisible(bool); |
175 | 175 |
176 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); | 176 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
177 | 177 |
| 178 void programmaticScroll(gfx::Vector2d targetOffset); |
| 179 |
178 void applyScrollAndScale(const ScrollAndScaleSet&); | 180 void applyScrollAndScale(const ScrollAndScaleSet&); |
179 // This function converts event coordinates when the deviceViewport is zoome
d. | 181 // This function converts event coordinates when the deviceViewport is zoome
d. |
180 // Coordinates are transformed from logical pixels in the zoomed viewport to | 182 // Coordinates are transformed from logical pixels in the zoomed viewport to |
181 // logical pixels in the un-zoomed viewport, the latter being the coordinate
s | 183 // logical pixels in the un-zoomed viewport, the latter being the coordinate
s |
182 // required for hit-testing. | 184 // required for hit-testing. |
183 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF& zoomedViewportPo
int) const; | 185 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF& zoomedViewportPo
int) const; |
184 void setImplTransform(const gfx::Transform&); | 186 void setImplTransform(const gfx::Transform&); |
185 | 187 |
186 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 188 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
187 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 189 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 281 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
280 | 282 |
281 static bool s_needsFilterContext; | 283 static bool s_needsFilterContext; |
282 | 284 |
283 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 285 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
284 }; | 286 }; |
285 | 287 |
286 } // namespace cc | 288 } // namespace cc |
287 | 289 |
288 #endif // CC_LAYER_TREE_HOST_H_ | 290 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |