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