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

Unified Diff: ash/frame/caption_buttons/bubble_contents_button_row.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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: ash/frame/caption_buttons/bubble_contents_button_row.cc
diff --git a/ash/frame/caption_buttons/bubble_contents_button_row.cc b/ash/frame/caption_buttons/bubble_contents_button_row.cc
index 761beec8edd1d8d38d44dc3f76dba607919f3426..63406c7f6098c45868c8cc1c2fc85ad5b7a5f592 100644
--- a/ash/frame/caption_buttons/bubble_contents_button_row.cc
+++ b/ash/frame/caption_buttons/bubble_contents_button_row.cc
@@ -80,7 +80,7 @@ bool BubbleDialogButton::OnMouseDragged(const ui::MouseEvent& event) {
return false;
// Remove the phantom window when we leave the button.
- gfx::Point screen_location(event.location());
+ gfx::Point screen_location(gfx::ToFlooredPoint(event.location()));
View::ConvertPointToScreen(this, &screen_location);
if (!GetBoundsInScreen().Contains(screen_location))
button_row_->ButtonHovered(NULL);

Powered by Google App Engine
This is Rietveld 408576698