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

Unified Diff: ui/message_center/views/notifier_settings_view.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
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notifier_settings_view.cc
diff --git a/ui/message_center/views/notifier_settings_view.cc b/ui/message_center/views/notifier_settings_view.cc
index 645e97115b58c1512e804f0cae1fcaf49e6eefe6..ebec78b095317450246d39034afa8caebe05e148 100644
--- a/ui/message_center/views/notifier_settings_view.cc
+++ b/ui/message_center/views/notifier_settings_view.cc
@@ -371,8 +371,8 @@ const Notifier& NotifierSettingsView::NotifierButton::notifier() const {
void NotifierSettingsView::NotifierButton::SendLearnMorePressedForTest() {
if (learn_more_ == NULL)
return;
- gfx::Point point(110, 120);
- ui::MouseEvent pressed(ui::ET_MOUSE_PRESSED, point, point,
+ const gfx::PointF kPoint(110.f, 120.f);
+ ui::MouseEvent pressed(ui::ET_MOUSE_PRESSED, kPoint, kPoint,
ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON,
ui::EF_LEFT_MOUSE_BUTTON);
ButtonPressed(learn_more_, pressed);
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698