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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } | 441 } |
442 | 442 |
443 void ResetAllChangeTracking(); | 443 void ResetAllChangeTracking(); |
444 | 444 |
445 void AddToLayerList(LayerImpl* layer); | 445 void AddToLayerList(LayerImpl* layer); |
446 | 446 |
447 void ClearLayerList(); | 447 void ClearLayerList(); |
448 | 448 |
449 void BuildLayerListForTesting(); | 449 void BuildLayerListForTesting(); |
450 | 450 |
| 451 bool SelectionChanged(); |
| 452 |
451 protected: | 453 protected: |
452 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 454 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
453 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 455 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
454 float min_page_scale_factor, | 456 float min_page_scale_factor, |
455 float max_page_scale_factor); | 457 float max_page_scale_factor); |
456 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 458 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
457 float max_page_scale_factor); | 459 float max_page_scale_factor); |
458 bool IsViewportLayerId(int id) const; | 460 bool IsViewportLayerId(int id) const; |
459 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); | 461 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); |
460 void DidUpdatePageScale(); | 462 void DidUpdatePageScale(); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 // controls at the time of the last layout. | 545 // controls at the time of the last layout. |
544 bool top_controls_shrink_blink_size_; | 546 bool top_controls_shrink_blink_size_; |
545 float top_controls_height_; | 547 float top_controls_height_; |
546 | 548 |
547 // The amount that the top controls are shown from 0 (hidden) to 1 (fully | 549 // The amount that the top controls are shown from 0 (hidden) to 1 (fully |
548 // shown). | 550 // shown). |
549 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; | 551 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; |
550 | 552 |
551 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 553 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
552 | 554 |
| 555 bool selection_changed_; |
| 556 |
553 private: | 557 private: |
554 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 558 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
555 }; | 559 }; |
556 | 560 |
557 } // namespace cc | 561 } // namespace cc |
558 | 562 |
559 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 563 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |