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

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

Issue 1677513002: mus Window Server: implement event capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/event_dispatcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher_delegate.h
diff --git a/components/mus/ws/event_dispatcher_delegate.h b/components/mus/ws/event_dispatcher_delegate.h
index 5ba2152a43891949ca58c8475f5820ae778fbe54..3202f236d9ca9e3e2186ea7ea5ac1f984fdb14d6 100644
--- a/components/mus/ws/event_dispatcher_delegate.h
+++ b/components/mus/ws/event_dispatcher_delegate.h
@@ -22,6 +22,16 @@ class EventDispatcherDelegate {
virtual void SetFocusedWindowFromEventDispatcher(ServerWindow* window) = 0;
virtual ServerWindow* GetFocusedWindowForEventDispatcher() = 0;
+ // Called when capture should be set on the native display.
+ virtual void SetNativeCapture() = 0;
+ // Called when the native display is having capture released. There is no
+ // longer a ServerWindow holding capture.
+ virtual void ReleaseNativeCapture() = 0;
+ // Called when |window| has lost capture. The native display may still be
+ // holding capture. The delegate should not change native display capture.
+ // ReleaseNativeCapture is invoked if appropriate.
+ virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0;
+
// |in_nonclient_area| is true if the event occurred in the non-client area.
virtual void DispatchInputEventToWindow(ServerWindow* target,
bool in_nonclient_area,
« no previous file with comments | « components/mus/ws/event_dispatcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698