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

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: Rebased after fixing the crash Created 4 years, 7 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/test_utils.h ('k') | components/mus/ws/window_manager_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index 4a3628f9eb69855d1cca7afb6afdce58d1fa934e..7a3b890cfa587cfcf799aa9797091a58849f2acc 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -124,6 +124,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;
« no previous file with comments | « components/mus/ws/test_utils.h ('k') | components/mus/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698