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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECKs from DriWindowManager Created 6 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
Index: ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
index f862724a15efb144b34a54198036223b79a2c113..a2406d43467ffab186eca58caf475ae55d5292ac 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
@@ -55,7 +55,8 @@ class MockCursorEvdev : public CursorDelegateEvdev {
cursor_location_ = gfx::PointF(delta.x(), delta.y());
}
bool IsCursorVisible() override { return 1; }
- gfx::PointF location() override { return cursor_location_; }
+ gfx::PointF GetLocation() override { return cursor_location_; }
+ gfx::PointF GetRootLocation() override { return cursor_location_; }
private:
// The location of the mock cursor.
@@ -442,7 +443,7 @@ TEST_F(EventConverterEvdevImplTest, MouseMove) {
event = dispatched_mouse_event(0);
EXPECT_EQ(ui::ET_MOUSE_MOVED, event->type());
- EXPECT_EQ(cursor()->location(), gfx::PointF(4, 2));
+ EXPECT_EQ(cursor()->GetLocation(), gfx::PointF(4, 2));
}
TEST_F(EventConverterEvdevImplTest, UnmappedKeyPress) {

Powered by Google App Engine
This is Rietveld 408576698