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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing aura problems Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index ff5da70a7e7ec633092d56de8cc7282b1316b21e..9586f942f211c064ff9b740c6ca5f619944c6849 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1931,9 +1931,15 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
}
void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) {
+ handle_visibility_changed_ =
+ selection_.is_handle_visible != selection.is_handle_visible;
selection_ = selection;
}
+bool LayerTreeImpl::HandleVisibilityChanged() {
+ return handle_visibility_changed_;
+}
+
static gfx::SelectionBound ComputeViewportSelectionBound(
const LayerSelectionBound& layer_bound,
LayerImpl* layer,
@@ -1996,6 +2002,7 @@ void LayerTreeImpl::GetViewportSelection(
device_scale_factor());
selection->is_editable = selection_.is_editable;
selection->is_empty_text_form_control = selection_.is_empty_text_form_control;
+ selection->is_handle_visible = selection_.is_handle_visible;
if (selection->start.type() == gfx::SelectionBound::CENTER ||
selection->start.type() == gfx::SelectionBound::EMPTY) {
selection->end = selection->start;

Powered by Google App Engine
This is Rietveld 408576698