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

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

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 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 | « components/mus/ws/display_binding.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 19cb43215c0baa0fd70c3bcf27f6bb3a3beb409c..21cce2bfe80f51921f122437bb142ba0fe1bc4ba 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -81,6 +81,9 @@ class WindowTreeTestApi {
mojom::EventResult::UNHANDLED);
}
void EnableCapture() { tree_->event_ack_id_ = 1u; }
+ void AckLastEvent(mojom::EventResult result) {
+ tree_->OnWindowInputEventAck(tree_->event_ack_id_, result);
+ }
void SetEventObserver(mojom::EventMatcherPtr matcher,
uint32_t event_observer_id);
@@ -160,6 +163,13 @@ class WindowManagerStateTestApi {
wms_->DispatchInputEventToWindow(target, client_id, event, accelerator);
}
+ ClientSpecificId GetEventTargetClientId(ServerWindow* window,
+ bool in_nonclient_area) {
+ return wms_->GetEventTargetClientId(window, in_nonclient_area);
+ }
+
+ void ProcessEvent(const ui::Event& event) { wms_->ProcessEvent(event); }
+
void OnEventAckTimeout(ClientSpecificId client_id) {
wms_->OnEventAckTimeout(client_id);
}
« no previous file with comments | « components/mus/ws/display_binding.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698