Removes SetShowState from WindowManager
There are a bunch of other little fixes I'm making here too:
. Remove reverse transform mapping of events in
WindowTreeHostMus. It is not possible to do a reverse mapping for
mus at this time, and it shouldn't be necessary.
. WindowEventDispatcher gets option to disable reverse mapping.
. Added fake capture simulation until we get real capture api.
. Make NativeWidgetMus::UpdateClientArea protected. Needed so that WM
can override to do nothing (client area comes from client, not
window manager).
. Move not started over non-client frame buttons.
. Move loop started ui::Event, rather than mus::mojom::Event. I need
to convert MoveLoop entirely to ui::Event, but that can be done
separately.
. When maximizing set the restore bounds.
BUG=548420
TEST=covered by tests
[email protected]
Review URL: https://codereview.chromium.org/1449983002
Cr-Commit-Position: refs/heads/master@{#359942}
diff --git a/ui/aura/window_event_dispatcher.h b/ui/aura/window_event_dispatcher.h
index a44eace1..4677af3 100644
--- a/ui/aura/window_event_dispatcher.h
+++ b/ui/aura/window_event_dispatcher.h
@@ -63,6 +63,8 @@
explicit WindowEventDispatcher(WindowTreeHost* host);
~WindowEventDispatcher() override;
+ void set_transform_events(bool value) { transform_events_ = value; }
+
Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
Window* mouse_moved_handler() { return mouse_moved_handler_; }
@@ -267,6 +269,8 @@
ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
+ bool transform_events_;
+
// Used to schedule reposting an event.
base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_;