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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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 explicit gfx::Rect to gfx::RectF conversion 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.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc
index dc8e54b53d28affb0a8d9cf7231ab5fd409353c9..57ea14de5130aa091b4871abbda3c58982673050 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc
@@ -111,8 +111,8 @@ void EventConverterEvdevImpl::DispatchMouseButton(const input_event& input) {
modifiers_->UpdateModifier(modifier, input.value);
callback_.Run(make_scoped_ptr(
new MouseEvent(input.value ? ET_MOUSE_PRESSED : ET_MOUSE_RELEASED,
- cursor_->location(),
- cursor_->location(),
+ cursor_->GetLocation(),
+ cursor_->GetRootLocation(),
modifiers_->GetModifierFlags() | flag,
flag)));
}
@@ -125,8 +125,8 @@ void EventConverterEvdevImpl::FlushEvents() {
callback_.Run(make_scoped_ptr(
new MouseEvent(ui::ET_MOUSE_MOVED,
- cursor_->location(),
- cursor_->location(),
+ cursor_->GetLocation(),
+ cursor_->GetRootLocation(),
modifiers_->GetModifierFlags(),
/* changed_button_flags */ 0)));
x_offset_ = 0;

Powered by Google App Engine
This is Rietveld 408576698