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

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: default handle visibility should be false Created 4 years, 4 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..075ddfabb5c60cf92a07ff6242ac02af43a3ce24 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1931,9 +1931,14 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
}
void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) {
+ selection_changed_ = selection_ != selection;
aelias_OOO_until_Jul13 2016/08/08 21:30:51 This relies on RegisterSelection being called agai
amaralp 2016/10/14 00:53:06 Done.
selection_ = selection;
}
+bool LayerTreeImpl::SelectionChanged() {
+ return selection_changed_;
+}
+
static gfx::SelectionBound ComputeViewportSelectionBound(
const LayerSelectionBound& layer_bound,
LayerImpl* layer,

Powered by Google App Engine
This is Rietveld 408576698