Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move mouse/keyboard handle clearing to blink Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 LayerImpl* FindFirstScrollingLayerOrScrollbarLayerThatIsHitByPoint( 399 LayerImpl* FindFirstScrollingLayerOrScrollbarLayerThatIsHitByPoint(
400 const gfx::PointF& screen_space_point); 400 const gfx::PointF& screen_space_point);
401 401
402 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); 402 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
403 403
404 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 404 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
405 const gfx::PointF& screen_space_point); 405 const gfx::PointF& screen_space_point);
406 406
407 void RegisterSelection(const LayerSelection& selection); 407 void RegisterSelection(const LayerSelection& selection);
408 408
409 bool GetAndResetHandleVisibilityChanged();
410
409 // Compute the current selection handle location and visbility with respect to 411 // Compute the current selection handle location and visbility with respect to
410 // the viewport. 412 // the viewport.
411 void GetViewportSelection(Selection<gfx::SelectionBound>* selection); 413 void GetViewportSelection(Selection<gfx::SelectionBound>* selection);
412 414
413 void set_top_controls_shrink_blink_size(bool shrink); 415 void set_top_controls_shrink_blink_size(bool shrink);
414 bool top_controls_shrink_blink_size() const { 416 bool top_controls_shrink_blink_size() const {
415 return top_controls_shrink_blink_size_; 417 return top_controls_shrink_blink_size_;
416 } 418 }
417 bool SetCurrentTopControlsShownRatio(float ratio); 419 bool SetCurrentTopControlsShownRatio(float ratio);
418 float CurrentTopControlsShownRatio() const { 420 float CurrentTopControlsShownRatio() const {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 bool needs_update_draw_properties_; 536 bool needs_update_draw_properties_;
535 537
536 // In impl-side painting mode, this is true when the tree may contain 538 // In impl-side painting mode, this is true when the tree may contain
537 // structural differences relative to the active tree. 539 // structural differences relative to the active tree.
538 bool needs_full_tree_sync_; 540 bool needs_full_tree_sync_;
539 541
540 bool next_activation_forces_redraw_; 542 bool next_activation_forces_redraw_;
541 543
542 bool has_ever_been_drawn_; 544 bool has_ever_been_drawn_;
543 545
546 bool handle_visibility_changed_;
547
544 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_; 548 std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_;
545 std::vector<std::unique_ptr<SwapPromise>> pinned_swap_promise_list_; 549 std::vector<std::unique_ptr<SwapPromise>> pinned_swap_promise_list_;
546 550
547 UIResourceRequestQueue ui_resource_request_queue_; 551 UIResourceRequestQueue ui_resource_request_queue_;
548 552
549 bool have_scroll_event_handlers_; 553 bool have_scroll_event_handlers_;
550 EventListenerProperties event_listener_properties_[static_cast<size_t>( 554 EventListenerProperties event_listener_properties_[static_cast<size_t>(
551 EventListenerClass::kNumClasses)]; 555 EventListenerClass::kNumClasses)];
552 556
553 // Whether or not Blink's viewport size was shrunk by the height of the top 557 // Whether or not Blink's viewport size was shrunk by the height of the top
554 // controls at the time of the last layout. 558 // controls at the time of the last layout.
555 bool top_controls_shrink_blink_size_; 559 bool top_controls_shrink_blink_size_;
556 float top_controls_height_; 560 float top_controls_height_;
557 float bottom_controls_height_; 561 float bottom_controls_height_;
558 562
559 // The amount that the top controls are shown from 0 (hidden) to 1 (fully 563 // The amount that the top controls are shown from 0 (hidden) to 1 (fully
560 // shown). 564 // shown).
561 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; 565 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_;
562 566
563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 567 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
564 568
565 private: 569 private:
566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 570 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
567 }; 571 };
568 572
569 } // namespace cc 573 } // namespace cc
570 574
571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 575 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698