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

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

Issue 1775133003: Moves EventDispatcher from Display to WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo Created 4 years, 9 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/user_id_tracker.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 a02b67512618b1e66895f7e566db9b8444531224..1f3b0dc7d853483ba2f84db7acb34e6233274feb 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -104,6 +104,17 @@ WindowTreeTestApi::~WindowTreeTestApi() {}
DisplayTestApi::DisplayTestApi(Display* display) : display_(display) {}
DisplayTestApi::~DisplayTestApi() {}
+// EventDispatcherTestApi ----------------------------------------------------
+
+int EventDispatcherTestApi::NumberPointerTargetsForWindow(
+ ServerWindow* window) {
+ int count = 0;
+ for (const auto& pair : ed_->pointer_targets_)
+ if (pair.second.window == window)
+ count++;
+ return count;
+}
+
// TestWindowTreeClient -------------------------------------------------------
TestWindowTreeClient::TestWindowTreeClient()
« no previous file with comments | « components/mus/ws/test_utils.h ('k') | components/mus/ws/user_id_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698