Commit eb5b84e3 authored by Ryan Cui's avatar Ryan Cui Committed by Commit Bot

Enable pretarget handlers for touch events in mash

Bug: 826476
Change-Id: I6b30a7b5c4c252896d557db14e14a54ad4d36ee5
Reviewed-on: https://chromium-review.googlesource.com/1130827
Commit-Queue: Ryan Cui <rcui@chromium.org>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576305}
parent 15986e3d
...@@ -1141,10 +1141,8 @@ void Shell::Init( ...@@ -1141,10 +1141,8 @@ void Shell::Init(
toplevel_window_event_handler_ = toplevel_window_event_handler_ =
std::make_unique<ToplevelWindowEventHandler>(); std::make_unique<ToplevelWindowEventHandler>();
if (config != Config::MASH_DEPRECATED) { system_gesture_filter_ = std::make_unique<SystemGestureEventFilter>();
system_gesture_filter_.reset(new SystemGestureEventFilter); AddPreTargetHandler(system_gesture_filter_.get());
AddPreTargetHandler(system_gesture_filter_.get());
}
sticky_keys_controller_.reset(new StickyKeysController); sticky_keys_controller_.reset(new StickyKeysController);
screen_pinning_controller_ = std::make_unique<ScreenPinningController>(); screen_pinning_controller_ = std::make_unique<ScreenPinningController>();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment