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

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

Issue 761843003: ozone: dri: Rename DriCursor::location() to GetLocation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test 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 40bac2c017f213b45ee73e3d31d003c4308f1091..e88148d19dd29ff80b66a57838ca54d4bb1e4441 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev.cc
@@ -141,9 +141,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_->GetLocation(),
+ modifiers_->GetModifierFlags() | flag, flag)));
}
void TabletEventConverterEvdev::FlushEvents() {
@@ -162,8 +163,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_->GetLocation(), modifiers_->GetModifierFlags(),
/* changed_button_flags */ 0)));
abs_value_dirty_ = false;

Powered by Google App Engine
This is Rietveld 408576698