summaryrefslogtreecommitdiff
path: root/chromium/ui/touch_selection/touch_handle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/touch_selection/touch_handle.cc')
-rw-r--r--chromium/ui/touch_selection/touch_handle.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/ui/touch_selection/touch_handle.cc b/chromium/ui/touch_selection/touch_handle.cc
index 65b1dba8e82..503f9eab771 100644
--- a/chromium/ui/touch_selection/touch_handle.cc
+++ b/chromium/ui/touch_selection/touch_handle.cc
@@ -330,6 +330,10 @@ void TouchHandle::UpdateHandleLayout() {
drawable_->SetOrigin(ComputeHandleOrigin());
}
+void TouchHandle::SetTransparent() {
+ SetAlpha(0.f);
+}
+
gfx::PointF TouchHandle::ComputeHandleOrigin() const {
gfx::PointF focus = mirror_vertical_ ? focus_top_ : focus_bottom_;
gfx::RectF drawable_bounds = drawable_->GetVisibleBounds();