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

Unified Diff: ui/events/ozone/evdev/tablet_event_converter_evdev.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/tablet_event_converter_evdev.cc
diff --git a/ui/events/ozone/evdev/tablet_event_converter_evdev.cc b/ui/events/ozone/evdev/tablet_event_converter_evdev.cc
index d2ca2e3af95d6b0b4c6744b164992357ee784f6d..093bad9e81ca379afb2211485156e1b6cef28007 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev.cc
@@ -136,9 +136,10 @@ void TabletEventConverterEvdev::DispatchMouseButton(const input_event& input) {
int flag = modifiers_->GetEventFlagFromModifier(modifier);
modifiers_->UpdateModifier(modifier, input.value);
- callback_.Run(make_scoped_ptr(new MouseEvent(
- input.value ? ET_MOUSE_PRESSED : ET_MOUSE_RELEASED, cursor_->location(),
- cursor_->location(), modifiers_->GetModifierFlags() | flag, flag)));
+ callback_.Run(make_scoped_ptr(
+ new MouseEvent(input.value ? ET_MOUSE_PRESSED : ET_MOUSE_RELEASED,
+ cursor_->GetLocation(), cursor_->GetRootLocation(),
+ modifiers_->GetModifierFlags() | flag, flag)));
}
void TabletEventConverterEvdev::FlushEvents() {
@@ -157,8 +158,8 @@ void TabletEventConverterEvdev::FlushEvents() {
UpdateCursor();
callback_.Run(make_scoped_ptr(
- new MouseEvent(ui::ET_MOUSE_MOVED, cursor_->location(),
- cursor_->location(), modifiers_->GetModifierFlags(),
+ new MouseEvent(ui::ET_MOUSE_MOVED, cursor_->GetLocation(),
+ cursor_->GetRootLocation(), modifiers_->GetModifierFlags(),
/* changed_button_flags */ 0)));
abs_value_dirty_ = false;

Powered by Google App Engine
This is Rietveld 408576698