Chromium Code Reviews| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 has_transparent_background_ = transparent; | 268 has_transparent_background_ = transparent; |
| 269 } | 269 } |
| 270 | 270 |
| 271 void SetVisible(bool visible); | 271 void SetVisible(bool visible); |
| 272 bool visible() const { return visible_; } | 272 bool visible() const { return visible_; } |
| 273 | 273 |
| 274 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 274 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 275 bool use_anchor, | 275 bool use_anchor, |
| 276 float scale, | 276 float scale, |
| 277 base::TimeDelta duration); | 277 base::TimeDelta duration); |
| 278 bool HasPendingPageScaleAnimation() const; | |
|
esprehn
2016/05/18 18:49:17
you could probably do
bool has_pending_page_scale
| |
| 278 | 279 |
| 279 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 280 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 280 void SetImplTransform(const gfx::Transform& transform); | 281 void SetImplTransform(const gfx::Transform& transform); |
| 281 | 282 |
| 282 void SetDeviceScaleFactor(float device_scale_factor); | 283 void SetDeviceScaleFactor(float device_scale_factor); |
| 283 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 284 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
| 284 | 285 |
| 285 float device_scale_factor() const { return device_scale_factor_; } | 286 float device_scale_factor() const { return device_scale_factor_; } |
| 286 | 287 |
| 287 void UpdateTopControlsState(TopControlsState constraints, | 288 void UpdateTopControlsState(TopControlsState constraints, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 588 | 589 |
| 589 uint32_t surface_id_namespace_; | 590 uint32_t surface_id_namespace_; |
| 590 uint32_t next_surface_sequence_; | 591 uint32_t next_surface_sequence_; |
| 591 | 592 |
| 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 593 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 593 }; | 594 }; |
| 594 | 595 |
| 595 } // namespace cc | 596 } // namespace cc |
| 596 | 597 |
| 597 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 598 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |