| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 protected: | 466 protected: |
| 467 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 467 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 468 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 468 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| 469 float min_page_scale_factor, | 469 float min_page_scale_factor, |
| 470 float max_page_scale_factor); | 470 float max_page_scale_factor); |
| 471 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 471 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
| 472 float max_page_scale_factor); | 472 float max_page_scale_factor); |
| 473 bool IsViewportLayerId(int id) const; | 473 bool IsViewportLayerId(int id) const; |
| 474 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); | 474 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); |
| 475 void ShowScrollbars(); |
| 475 void DidUpdatePageScale(); | 476 void DidUpdatePageScale(); |
| 476 void PushBrowserControls(const float* top_controls_shown_ratio); | 477 void PushBrowserControls(const float* top_controls_shown_ratio); |
| 477 bool ClampBrowserControlsShownRatio(); | 478 bool ClampBrowserControlsShownRatio(); |
| 478 | 479 |
| 479 LayerTreeHostImpl* layer_tree_host_impl_; | 480 LayerTreeHostImpl* layer_tree_host_impl_; |
| 480 int source_frame_number_; | 481 int source_frame_number_; |
| 481 int is_first_frame_after_commit_tracker_; | 482 int is_first_frame_after_commit_tracker_; |
| 482 LayerImpl* root_layer_for_testing_; | 483 LayerImpl* root_layer_for_testing_; |
| 483 HeadsUpDisplayLayerImpl* hud_layer_; | 484 HeadsUpDisplayLayerImpl* hud_layer_; |
| 484 PropertyTrees property_trees_; | 485 PropertyTrees property_trees_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 | 576 |
| 576 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 577 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 577 | 578 |
| 578 private: | 579 private: |
| 579 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 580 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 580 }; | 581 }; |
| 581 | 582 |
| 582 } // namespace cc | 583 } // namespace cc |
| 583 | 584 |
| 584 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 585 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |