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

Unified Diff: ui/events/test/events_test_utils.h

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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/gfx/geometry/point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils.h
diff --git a/ui/events/test/events_test_utils.h b/ui/events/test/events_test_utils.h
index c9bd55d0383abf10a74baf2682674696d609ad40..833748a7be348153dd63fc1d78d5d2d711535778 100644
--- a/ui/events/test/events_test_utils.h
+++ b/ui/events/test/events_test_utils.h
@@ -39,8 +39,11 @@ class LocatedEventTestApi : public EventTestApi {
explicit LocatedEventTestApi(LocatedEvent* located_event);
~LocatedEventTestApi() override;
- void set_location(const gfx::PointF& location) {
- located_event_->location_ = location;
+ void set_location(const gfx::Point& location) {
+ located_event_->set_location(location);
+ }
+ void set_location_f(const gfx::PointF& location) {
+ located_event_->set_location_f(location);
}
private:
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/gfx/geometry/point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698