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

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

Issue 2884463002: Make event-targeting asynchronous in window server. (Closed)
Patch Set: comments #40 Created 3 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
Index: services/ui/ws/event_dispatcher_delegate.h
diff --git a/services/ui/ws/event_dispatcher_delegate.h b/services/ui/ws/event_dispatcher_delegate.h
index 28a2a0a123f12e8aeb0dc4ba1796517bb9833715..f90016ad320831df5562f7c005bb910f210f4c25 100644
--- a/services/ui/ws/event_dispatcher_delegate.h
+++ b/services/ui/ws/event_dispatcher_delegate.h
@@ -31,13 +31,13 @@ class EventDispatcherDelegate {
};
virtual void OnAccelerator(uint32_t accelerator,
- const int64_t display_id,
+ int64_t display_id,
const ui::Event& event,
AcceleratorPhase phase) = 0;
virtual void SetFocusedWindowFromEventDispatcher(ServerWindow* window) = 0;
virtual ServerWindow* GetFocusedWindowForEventDispatcher(
- const int64_t display_id) = 0;
+ int64_t display_id) = 0;
// Called when capture should be set on the native display. |window| is the
// window capture is being set on.
@@ -58,15 +58,18 @@ class EventDispatcherDelegate {
ServerWindow* old_capture) = 0;
virtual void OnMouseCursorLocationChanged(const gfx::Point& point,
- const int64_t display_id) = 0;
+ int64_t display_id) = 0;
// Dispatches an event to the specific client.
virtual void DispatchInputEventToWindow(ServerWindow* target,
ClientSpecificId client_id,
- const int64_t display_id,
+ int64_t display_id,
const ui::Event& event,
Accelerator* accelerator) = 0;
+ // Starts processing the next event in the event queue.
+ virtual void ProcessNextEventFromQueue() = 0;
sadrul 2017/06/07 20:16:04 Instead of saying FromQueue, maybe 'ProcessNextAva
riajiang 2017/06/07 21:46:25 Changed to ProcessNextAvailableEvent.
+
// Returns the id of the client to send events to. |in_nonclient_area| is
// true if the event occurred in the non-client area of the window.
virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window,
@@ -86,7 +89,7 @@ class EventDispatcherDelegate {
// Called when event dispatch could not find a target. OnAccelerator may still
// be called.
virtual void OnEventTargetNotFound(const ui::Event& event,
- const int64_t display_id) = 0;
+ int64_t display_id) = 0;
protected:
virtual ~EventDispatcherDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698