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

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

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: merge Created 3 years, 11 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/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index 9469b959429d9859544ed18835437d944288381f..ac35e990df231559d0d28cef9b257029e4e45427 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -106,8 +106,9 @@ class WindowTreeTestApi {
void set_window_manager_internal(mojom::WindowManager* wm_internal) {
tree_->window_manager_internal_ = wm_internal;
}
- void SetCanAcceptEvents(Id transport_window_id, bool can_accept_events) {
- tree_->SetCanAcceptEvents(transport_window_id, can_accept_events);
+ void SetEventTargetingPolicy(Id transport_window_id,
+ mojom::EventTargetingPolicy policy) {
+ tree_->SetEventTargetingPolicy(transport_window_id, policy);
}
void AckOldestEvent(
mojom::EventResult result = mojom::EventResult::UNHANDLED) {
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager_test_api.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698