Fixing text selection handles getting appeared before finger release

Alpha value for selection handle is not reset correctly during
clearing of selection. This is making touch handle showing for
a small duration. Clearing the visibility state of handles during
selection clear, so that it will automatically set the alpha value
to 0 during fade animation.

Bug: 741682
Change-Id: I40d31e705637680bbe1cddaa9f857b7f4cca2324
Reviewed-on: https://chromium-review.googlesource.com/571210
Commit-Queue: AJITH KUMAR V <[email protected]>
Reviewed-by: Mohsen Izadi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#489041}
diff --git a/ui/touch_selection/touch_handle.h b/ui/touch_selection/touch_handle.h
index 5d581e5..3815fea 100644
--- a/ui/touch_selection/touch_handle.h
+++ b/ui/touch_selection/touch_handle.h
@@ -122,6 +122,7 @@
 
   const gfx::PointF& focus_bottom() const { return focus_bottom_; }
   TouchHandleOrientation orientation() const { return orientation_; }
+  float alpha() const { return alpha_; }
 
  private:
   gfx::PointF ComputeHandleOrigin() const;