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

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

Issue 1017473002: [Merge] Make mouse buttons 8 - 11 navigate forward and back in history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 9 months 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_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index e264f3530a75ae626bf98d0e52857200741f2221..fe2150158d2d816107c222ef6988ced5b29fa0e7 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -178,6 +178,12 @@ void EventFactoryEvdev::DispatchMouseButtonEvent(
case BTN_MIDDLE:
modifier = EVDEV_MODIFIER_MIDDLE_MOUSE_BUTTON;
break;
+ case BTN_BACK:
+ modifier = EVDEV_MODIFIER_BACK_MOUSE_BUTTON;
+ break;
+ case BTN_FORWARD:
+ modifier = EVDEV_MODIFIER_FORWARD_MOUSE_BUTTON;
+ break;
default:
return;
}
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_modifiers_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698