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

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

Issue 1818333002: Reland: mus: Enable system modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up comments Created 4 years, 8 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.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;

Powered by Google App Engine
This is Rietveld 408576698