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

Unified Diff: ui/touch_selection/touch_handle_drawable_aura.cc

Issue 1404163004: Swap touch selection handles when they are interchanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: linux build error Created 5 years 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
« no previous file with comments | « no previous file | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_handle_drawable_aura.cc
diff --git a/ui/touch_selection/touch_handle_drawable_aura.cc b/ui/touch_selection/touch_handle_drawable_aura.cc
index 02c18a9644303a1219d97b1b898ebc03d4a1ee7d..d61ff09ac71d5599cdfcd5a5619030454cf7d565 100644
--- a/ui/touch_selection/touch_handle_drawable_aura.cc
+++ b/ui/touch_selection/touch_handle_drawable_aura.cc
@@ -117,6 +117,9 @@ void TouchHandleDrawableAura::SetOrientation(TouchHandleOrientation orientation,
gfx::RectF(-kSelectionHandlePadding,
kSelectionHandleVerticalVisualOffset - kSelectionHandlePadding,
window_width, window_height);
+ gfx::Rect paint_bounds(relative_bounds_.x(), relative_bounds_.y(),
+ relative_bounds_.width(), relative_bounds_.height());
mohsen 2015/12/21 21:05:50 I think you should've used gfx::ToEnclosingRect()
+ window_->SchedulePaintInRect(paint_bounds);
UpdateBounds();
}
« no previous file with comments | « no previous file | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698