| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 EventListenerProperties event_listener_properties( | 476 EventListenerProperties event_listener_properties( |
| 477 EventListenerClass event_class) const { | 477 EventListenerClass event_class) const { |
| 478 return event_listener_properties_[static_cast<size_t>(event_class)]; | 478 return event_listener_properties_[static_cast<size_t>(event_class)]; |
| 479 } | 479 } |
| 480 void set_event_listener_properties(EventListenerClass event_class, | 480 void set_event_listener_properties(EventListenerClass event_class, |
| 481 EventListenerProperties event_properties) { | 481 EventListenerProperties event_properties) { |
| 482 event_listener_properties_[static_cast<size_t>(event_class)] = | 482 event_listener_properties_[static_cast<size_t>(event_class)] = |
| 483 event_properties; | 483 event_properties; |
| 484 } | 484 } |
| 485 | 485 |
| 486 void ResetAllChangeTracking(PropertyTrees::ResetFlags flag); | 486 void ResetAllChangeTracking(); |
| 487 | 487 |
| 488 protected: | 488 protected: |
| 489 explicit LayerTreeImpl( | 489 explicit LayerTreeImpl( |
| 490 LayerTreeHostImpl* layer_tree_host_impl, | 490 LayerTreeHostImpl* layer_tree_host_impl, |
| 491 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 491 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
| 492 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 492 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
| 493 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); | 493 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); |
| 494 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 494 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 495 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 495 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| 496 float min_page_scale_factor, | 496 float min_page_scale_factor, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 589 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 590 | 590 |
| 591 private: | 591 private: |
| 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 593 }; | 593 }; |
| 594 | 594 |
| 595 } // namespace cc | 595 } // namespace cc |
| 596 | 596 |
| 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |