Index: components/mus/ws/test_utils.cc |
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc |
index 895556ee0338112992e65c57380738a2cbe26b73..628991bab6e0e4ec4355a653471613d9f1b3f268 100644 |
--- a/components/mus/ws/test_utils.cc |
+++ b/components/mus/ws/test_utils.cc |
@@ -116,6 +116,15 @@ DisplayTestApi::~DisplayTestApi() {} |
// EventDispatcherTestApi ---------------------------------------------------- |
+bool EventDispatcherTestApi::IsWindowPointerTarget( |
+ const ServerWindow* window) const { |
+ for (const auto& pair : ed_->pointer_targets_) { |
+ if (pair.second.window == window) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
int EventDispatcherTestApi::NumberPointerTargetsForWindow( |
ServerWindow* window) { |
int count = 0; |