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

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

Issue 2884463002: Make event-targeting asynchronous in window server. (Closed)
Patch Set: comments 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
« no previous file with comments | « services/ui/ws/event_targeter_delegate.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index dc2803dd8fa216b48d3b7ec9070a5b474b5ac5eb..1734541e7a5edbe2bab807608b77a2eb959e994f 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -207,7 +207,7 @@ class WindowManagerStateTestApi {
void DispatchInputEventToWindow(ServerWindow* target,
ClientSpecificId client_id,
- const int64_t display_id,
+ int64_t display_id,
const ui::Event& event,
Accelerator* accelerator) {
wms_->DispatchInputEventToWindow(target, client_id, display_id, event,
@@ -233,19 +233,22 @@ class WindowManagerStateTestApi {
}
WindowTree* tree_awaiting_input_ack() {
- return wms_->in_flight_event_details_ ? wms_->in_flight_event_details_->tree
- : nullptr;
+ return wms_->in_flight_event_dispatch_details_
+ ? wms_->in_flight_event_dispatch_details_->tree
+ : nullptr;
}
+ bool is_event_queue_empty() const { return wms_->event_queue_.empty(); }
+
const std::vector<std::unique_ptr<WindowManagerDisplayRoot>>&
window_manager_display_roots() const {
return wms_->window_manager_display_roots_;
}
bool AckInFlightEvent(mojom::EventResult result) {
- if (!wms_->in_flight_event_details_)
+ if (!wms_->in_flight_event_dispatch_details_)
return false;
- wms_->OnEventAck(wms_->in_flight_event_details_->tree, result);
+ wms_->OnEventAck(wms_->in_flight_event_dispatch_details_->tree, result);
return true;
}
« no previous file with comments | « services/ui/ws/event_targeter_delegate.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698