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