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

Unified Diff: services/ui/ws/event_targeter_delegate.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/event_targeter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_targeter_delegate.h
diff --git a/services/ui/ws/event_targeter_delegate.h b/services/ui/ws/event_targeter_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e46860090028b3f5a8e6ee0645e716bc256406a
--- /dev/null
+++ b/services/ui/ws/event_targeter_delegate.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_
+#define SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_
+
+#include <stdint.h>
+
+namespace gfx {
+class Point;
+}
+
+namespace ui {
+namespace ws {
+class ServerWindow;
+
+// Used by EventTargeter to talk to WindowManagerState.
+class EventTargeterDelegate {
+ public:
+ // Calls EventDispatcherDelegate::GetRootWindowContaining, see
+ // event_dispatcher_delegate.h for details.
+ virtual ServerWindow* GetRootWindowContaining(gfx::Point* location_in_display,
+ int64_t* display_id) = 0;
+
+ protected:
+ virtual ~EventTargeterDelegate() {}
+};
+
+} // namespace ws
+} // namespace ui
+
+#endif // SERVICES_UI_WS_EVENT_TARGETER_DELEGATE_H_
« no previous file with comments | « services/ui/ws/event_targeter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698