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

Unified Diff: ui/views/accessibility/native_view_accessibility.cc

Issue 1421713002: Explicitly convert Point to PointF for event code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip
Patch Set: pointfconvert-prod: . Created 5 years, 2 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: ui/views/accessibility/native_view_accessibility.cc
diff --git a/ui/views/accessibility/native_view_accessibility.cc b/ui/views/accessibility/native_view_accessibility.cc
index db8367fcefb1554900df50451b58c166d58bd943..9fc6a790bef6c689f421ab81219c56529b6b1395 100644
--- a/ui/views/accessibility/native_view_accessibility.cc
+++ b/ui/views/accessibility/native_view_accessibility.cc
@@ -176,7 +176,7 @@ NativeViewAccessibility::GetTargetForNativeAccessibilityEvent() {
}
void NativeViewAccessibility::DoDefaultAction() {
- gfx::Point center = view_->GetLocalBounds().CenterPoint();
+ gfx::PointF center(view_->GetLocalBounds().CenterPoint());
view_->OnMousePressed(ui::MouseEvent(ui::ET_MOUSE_PRESSED,
center,
center,

Powered by Google App Engine
This is Rietveld 408576698