| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 LayerImpl* FindFirstScrollingLayerOrScrollbarLayerThatIsHitByPoint( | 398 LayerImpl* FindFirstScrollingLayerOrScrollbarLayerThatIsHitByPoint( |
| 399 const gfx::PointF& screen_space_point); | 399 const gfx::PointF& screen_space_point); |
| 400 | 400 |
| 401 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); | 401 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); |
| 402 | 402 |
| 403 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( | 403 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( |
| 404 const gfx::PointF& screen_space_point); | 404 const gfx::PointF& screen_space_point); |
| 405 | 405 |
| 406 void RegisterSelection(const LayerSelection& selection); | 406 void RegisterSelection(const LayerSelection& selection); |
| 407 | 407 |
| 408 bool GetAndResetHandleVisibilityChanged(); |
| 409 |
| 408 // Compute the current selection handle location and visbility with respect to | 410 // Compute the current selection handle location and visbility with respect to |
| 409 // the viewport. | 411 // the viewport. |
| 410 void GetViewportSelection(Selection<gfx::SelectionBound>* selection); | 412 void GetViewportSelection(Selection<gfx::SelectionBound>* selection); |
| 411 | 413 |
| 412 void set_browser_controls_shrink_blink_size(bool shrink); | 414 void set_browser_controls_shrink_blink_size(bool shrink); |
| 413 bool browser_controls_shrink_blink_size() const { | 415 bool browser_controls_shrink_blink_size() const { |
| 414 return browser_controls_shrink_blink_size_; | 416 return browser_controls_shrink_blink_size_; |
| 415 } | 417 } |
| 416 bool SetCurrentBrowserControlsShownRatio(float ratio); | 418 bool SetCurrentBrowserControlsShownRatio(float ratio); |
| 417 float CurrentBrowserControlsShownRatio() const { | 419 float CurrentBrowserControlsShownRatio() const { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 bool needs_update_draw_properties_; | 535 bool needs_update_draw_properties_; |
| 534 | 536 |
| 535 // In impl-side painting mode, this is true when the tree may contain | 537 // In impl-side painting mode, this is true when the tree may contain |
| 536 // structural differences relative to the active tree. | 538 // structural differences relative to the active tree. |
| 537 bool needs_full_tree_sync_; | 539 bool needs_full_tree_sync_; |
| 538 | 540 |
| 539 bool next_activation_forces_redraw_; | 541 bool next_activation_forces_redraw_; |
| 540 | 542 |
| 541 bool has_ever_been_drawn_; | 543 bool has_ever_been_drawn_; |
| 542 | 544 |
| 545 bool handle_visibility_changed_; |
| 546 |
| 543 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_; | 547 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_; |
| 544 std::vector<std::unique_ptr<SwapPromise>> pinned_swap_promise_list_; | 548 std::vector<std::unique_ptr<SwapPromise>> pinned_swap_promise_list_; |
| 545 | 549 |
| 546 UIResourceRequestQueue ui_resource_request_queue_; | 550 UIResourceRequestQueue ui_resource_request_queue_; |
| 547 | 551 |
| 548 bool have_scroll_event_handlers_; | 552 bool have_scroll_event_handlers_; |
| 549 EventListenerProperties event_listener_properties_[static_cast<size_t>( | 553 EventListenerProperties event_listener_properties_[static_cast<size_t>( |
| 550 EventListenerClass::kNumClasses)]; | 554 EventListenerClass::kNumClasses)]; |
| 551 | 555 |
| 552 // Whether or not Blink's viewport size was shrunk by the height of the top | 556 // Whether or not Blink's viewport size was shrunk by the height of the top |
| 553 // controls at the time of the last layout. | 557 // controls at the time of the last layout. |
| 554 bool browser_controls_shrink_blink_size_; | 558 bool browser_controls_shrink_blink_size_; |
| 555 float top_controls_height_; | 559 float top_controls_height_; |
| 556 float bottom_controls_height_; | 560 float bottom_controls_height_; |
| 557 | 561 |
| 558 // The amount that the browser controls are shown from 0 (hidden) to 1 (fully | 562 // The amount that the browser controls are shown from 0 (hidden) to 1 (fully |
| 559 // shown). | 563 // shown). |
| 560 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio_; | 564 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio_; |
| 561 | 565 |
| 562 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 566 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 563 | 567 |
| 564 private: | 568 private: |
| 565 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 569 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 566 }; | 570 }; |
| 567 | 571 |
| 568 } // namespace cc | 572 } // namespace cc |
| 569 | 573 |
| 570 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 574 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |