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

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: . 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
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index d69430763111a84ee766fc3166ef96a781ba59ce..a3184962efec4c95354d53c38b614d287db1a1d9 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -78,6 +78,9 @@ class WindowTreeTestApi {
void ClearAck() { tree_->event_ack_id_ = 0; }
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);

Powered by Google App Engine
This is Rietveld 408576698