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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 has_transparent_background_ = transparent; | 266 has_transparent_background_ = transparent; |
267 } | 267 } |
268 | 268 |
269 void SetVisible(bool visible); | 269 void SetVisible(bool visible); |
270 bool visible() const { return visible_; } | 270 bool visible() const { return visible_; } |
271 | 271 |
272 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 272 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
273 bool use_anchor, | 273 bool use_anchor, |
274 float scale, | 274 float scale, |
275 base::TimeDelta duration); | 275 base::TimeDelta duration); |
| 276 bool HasPendingPageScaleAnimation() const; |
276 | 277 |
277 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 278 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
278 void SetImplTransform(const gfx::Transform& transform); | 279 void SetImplTransform(const gfx::Transform& transform); |
279 | 280 |
280 void SetDeviceScaleFactor(float device_scale_factor); | 281 void SetDeviceScaleFactor(float device_scale_factor); |
281 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 282 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
282 | 283 |
283 float device_scale_factor() const { return device_scale_factor_; } | 284 float device_scale_factor() const { return device_scale_factor_; } |
284 | 285 |
285 void UpdateTopControlsState(TopControlsState constraints, | 286 void UpdateTopControlsState(TopControlsState constraints, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 591 |
591 uint32_t surface_id_namespace_; | 592 uint32_t surface_id_namespace_; |
592 uint32_t next_surface_sequence_; | 593 uint32_t next_surface_sequence_; |
593 | 594 |
594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 595 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
595 }; | 596 }; |
596 | 597 |
597 } // namespace cc | 598 } // namespace cc |
598 | 599 |
599 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 600 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |