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

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

Powered by Google App Engine
This is Rietveld 408576698