| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 void set_top_controls_height(float top_controls_height); | 333 void set_top_controls_height(float top_controls_height); |
| 334 float top_controls_height() const { return top_controls_height_; } | 334 float top_controls_height() const { return top_controls_height_; } |
| 335 void PushTopControlsFromMainThread(float top_controls_shown_ratio); | 335 void PushTopControlsFromMainThread(float top_controls_shown_ratio); |
| 336 | 336 |
| 337 void SetPendingPageScaleAnimation( | 337 void SetPendingPageScaleAnimation( |
| 338 scoped_ptr<PendingPageScaleAnimation> pending_animation); | 338 scoped_ptr<PendingPageScaleAnimation> pending_animation); |
| 339 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 339 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 340 | 340 |
| 341 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); | 341 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 342 | 342 |
| 343 bool IsExternalFlingActive() const; | 343 bool IsExternalScrollActive() const; |
| 344 void DidUpdateScrollOffset(int layer_id); | 344 void DidUpdateScrollOffset(int layer_id); |
| 345 | 345 |
| 346 protected: | 346 protected: |
| 347 explicit LayerTreeImpl( | 347 explicit LayerTreeImpl( |
| 348 LayerTreeHostImpl* layer_tree_host_impl, | 348 LayerTreeHostImpl* layer_tree_host_impl, |
| 349 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 349 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
| 350 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 350 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
| 351 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 351 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
| 352 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 352 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 353 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 353 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 427 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 428 | 428 |
| 429 private: | 429 private: |
| 430 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 430 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace cc | 433 } // namespace cc |
| 434 | 434 |
| 435 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 435 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |