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

Unified Diff: components/mus/ws/event_dispatcher.h

Issue 2089023002: Promotes remaining global window manager state into WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 6 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
« no previous file with comments | « components/mus/ws/display_unittest.cc ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher.h
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h
index 038c862f92353d90bfe6735711ca5ca78a12a4fe..a617807398187ae367220ed1d17f95af883ff12e 100644
--- a/components/mus/ws/event_dispatcher.h
+++ b/components/mus/ws/event_dispatcher.h
@@ -41,8 +41,6 @@ class EventDispatcher : public ServerWindowObserver {
explicit EventDispatcher(EventDispatcherDelegate* delegate);
~EventDispatcher() override;
- void set_root(ServerWindow* root) { root_ = root; }
-
// Cancels capture and stops tracking any pointer events. This does not send
// any events to the delegate.
void Reset();
@@ -163,7 +161,7 @@ class EventDispatcher : public ServerWindowObserver {
const ui::LocatedEvent& event);
// Returns a PointerTarget from the supplied event.
- PointerTarget PointerTargetForEvent(const ui::LocatedEvent& event) const;
+ PointerTarget PointerTargetForEvent(const ui::LocatedEvent& event);
// Returns true if any pointers are in the pressed/down state.
bool AreAnyPointersDown() const;
@@ -193,6 +191,8 @@ class EventDispatcher : public ServerWindowObserver {
Accelerator* FindAccelerator(const ui::KeyEvent& event,
const ui::mojom::AcceleratorPhase phase);
+ ServerWindow* FindDeepestVisibleWindowForEvents(gfx::Point* location);
+
// ServerWindowObserver:
void OnWillChangeWindowHierarchy(ServerWindow* window,
ServerWindow* new_parent,
@@ -201,7 +201,6 @@ class EventDispatcher : public ServerWindowObserver {
void OnWindowDestroyed(ServerWindow* window) override;
EventDispatcherDelegate* delegate_;
- ServerWindow* root_;
ServerWindow* capture_window_;
ClientSpecificId capture_window_client_id_;
@@ -216,7 +215,6 @@ class EventDispatcher : public ServerWindowObserver {
// bounds of |mouse_cursor_source_window_|, which can capture the cursor.
gfx::Point mouse_pointer_last_location_;
- using Entry = std::pair<uint32_t, std::unique_ptr<Accelerator>>;
std::map<uint32_t, std::unique_ptr<Accelerator>> accelerators_;
using PointerIdToTargetMap = std::map<int32_t, PointerTarget>;
« no previous file with comments | « components/mus/ws/display_unittest.cc ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698