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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 void SetPendingPageScaleAnimation( | 325 void SetPendingPageScaleAnimation( |
326 scoped_ptr<PendingPageScaleAnimation> pending_animation); | 326 scoped_ptr<PendingPageScaleAnimation> pending_animation); |
327 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 327 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
328 | 328 |
329 protected: | 329 protected: |
330 explicit LayerTreeImpl( | 330 explicit LayerTreeImpl( |
331 LayerTreeHostImpl* layer_tree_host_impl, | 331 LayerTreeHostImpl* layer_tree_host_impl, |
332 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 332 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
333 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 333 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
334 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 334 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
335 void ProcessLayersRecursive(LayerImpl* current, | |
336 void (LayerImpl::*function)()); | |
337 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 335 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
338 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 336 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
339 float min_page_scale_factor, | 337 float min_page_scale_factor, |
340 float max_page_scale_factor); | 338 float max_page_scale_factor); |
341 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 339 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
342 float max_page_scale_factor); | 340 float max_page_scale_factor); |
343 void DidUpdatePageScale(); | 341 void DidUpdatePageScale(); |
344 void HideInnerViewportScrollbarsIfNearMinimumScale(); | 342 void HideInnerViewportScrollbarsIfNearMinimumScale(); |
345 void PushTopControls(const float* top_controls_shown_ratio); | 343 void PushTopControls(const float* top_controls_shown_ratio); |
346 LayerTreeHostImpl* layer_tree_host_impl_; | 344 LayerTreeHostImpl* layer_tree_host_impl_; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 410 |
413 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 411 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
414 | 412 |
415 private: | 413 private: |
416 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 414 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
417 }; | 415 }; |
418 | 416 |
419 } // namespace cc | 417 } // namespace cc |
420 | 418 |
421 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 419 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |