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

Unified Diff: services/ui/ws/event_dispatcher.h

Issue 2911293002: Add EventTargeterDelegate for EventTargeter in mus-ws. (Closed)
Patch Set: Created 3 years, 7 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 | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher.h
diff --git a/services/ui/ws/event_dispatcher.h b/services/ui/ws/event_dispatcher.h
index 193786bd6ee5d119c42684623986a3ce9c612e94..1da07968bb4ba5868c01f88531e4509debdce0fd 100644
--- a/services/ui/ws/event_dispatcher.h
+++ b/services/ui/ws/event_dispatcher.h
@@ -17,6 +17,7 @@
#include "services/ui/public/interfaces/window_manager.mojom.h"
#include "services/ui/ws/drag_cursor_updater.h"
#include "services/ui/ws/event_targeter.h"
+#include "services/ui/ws/event_targeter_delegate.h"
#include "services/ui/ws/modal_window_controller.h"
#include "services/ui/ws/server_window_observer.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -41,7 +42,9 @@ class EventDispatcherTestApi;
}
// Handles dispatching events to the right location as well as updating focus.
-class EventDispatcher : public ServerWindowObserver, public DragCursorUpdater {
+class EventDispatcher : public ServerWindowObserver,
+ public DragCursorUpdater,
+ public EventTargeterDelegate {
public:
enum class AcceleratorMatchPhase {
// Both pre and post should be considered.
@@ -148,6 +151,10 @@ class EventDispatcher : public ServerWindowObserver, public DragCursorUpdater {
const int64_t display_id,
AcceleratorMatchPhase match_phase);
+ // EventTargeterDelegate:
+ ServerWindow* GetRootWindowContaining(gfx::Point* location_in_display,
+ int64_t* display_id) override;
+
private:
friend class test::EventDispatcherTestApi;
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698