| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 bool top_controls_shrink_blink_size() const { | 409 bool top_controls_shrink_blink_size() const { |
| 410 return top_controls_shrink_blink_size_; | 410 return top_controls_shrink_blink_size_; |
| 411 } | 411 } |
| 412 bool SetCurrentTopControlsShownRatio(float ratio); | 412 bool SetCurrentTopControlsShownRatio(float ratio); |
| 413 float CurrentTopControlsShownRatio() const { | 413 float CurrentTopControlsShownRatio() const { |
| 414 return top_controls_shown_ratio_->Current(IsActiveTree()); | 414 return top_controls_shown_ratio_->Current(IsActiveTree()); |
| 415 } | 415 } |
| 416 void set_top_controls_height(float top_controls_height); | 416 void set_top_controls_height(float top_controls_height); |
| 417 float top_controls_height() const { return top_controls_height_; } | 417 float top_controls_height() const { return top_controls_height_; } |
| 418 void PushTopControlsFromMainThread(float top_controls_shown_ratio); | 418 void PushTopControlsFromMainThread(float top_controls_shown_ratio); |
| 419 void set_bottom_controls_height(float bottom_controls_height); |
| 420 float bottom_controls_height() const { return bottom_controls_height_; } |
| 419 | 421 |
| 420 void SetPendingPageScaleAnimation( | 422 void SetPendingPageScaleAnimation( |
| 421 std::unique_ptr<PendingPageScaleAnimation> pending_animation); | 423 std::unique_ptr<PendingPageScaleAnimation> pending_animation); |
| 422 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 424 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 423 | 425 |
| 424 void DidUpdateScrollOffset(int layer_id, int transform_id); | 426 void DidUpdateScrollOffset(int layer_id, int transform_id); |
| 425 void DidUpdateScrollState(int layer_id); | 427 void DidUpdateScrollState(int layer_id); |
| 426 | 428 |
| 427 void ScrollAnimationAbort(bool needs_completion); | 429 void ScrollAnimationAbort(bool needs_completion); |
| 428 | 430 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 UIResourceRequestQueue ui_resource_request_queue_; | 541 UIResourceRequestQueue ui_resource_request_queue_; |
| 540 | 542 |
| 541 bool have_scroll_event_handlers_; | 543 bool have_scroll_event_handlers_; |
| 542 EventListenerProperties event_listener_properties_[static_cast<size_t>( | 544 EventListenerProperties event_listener_properties_[static_cast<size_t>( |
| 543 EventListenerClass::kNumClasses)]; | 545 EventListenerClass::kNumClasses)]; |
| 544 | 546 |
| 545 // Whether or not Blink's viewport size was shrunk by the height of the top | 547 // Whether or not Blink's viewport size was shrunk by the height of the top |
| 546 // controls at the time of the last layout. | 548 // controls at the time of the last layout. |
| 547 bool top_controls_shrink_blink_size_; | 549 bool top_controls_shrink_blink_size_; |
| 548 float top_controls_height_; | 550 float top_controls_height_; |
| 551 float bottom_controls_height_; |
| 549 | 552 |
| 550 // The amount that the top controls are shown from 0 (hidden) to 1 (fully | 553 // The amount that the top controls are shown from 0 (hidden) to 1 (fully |
| 551 // shown). | 554 // shown). |
| 552 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; | 555 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; |
| 553 | 556 |
| 554 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 557 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 555 | 558 |
| 556 private: | 559 private: |
| 557 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 560 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 558 }; | 561 }; |
| 559 | 562 |
| 560 } // namespace cc | 563 } // namespace cc |
| 561 | 564 |
| 562 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 565 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |