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

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

Issue 1998323002: EventDispatcher shouldn't always cancel on a hierarchy change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback 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/server_window_surface_manager_test_api.h ('k') | components/mus/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window_surface_manager_test_api.cc
diff --git a/components/mus/ws/server_window_surface_manager_test_api.cc b/components/mus/ws/server_window_surface_manager_test_api.cc
index 38aba1242038c7b31efa83366c7ca88c684fb22c..d65ae0f6376878dc5c9688fcf96044976fa8f7bd 100644
--- a/components/mus/ws/server_window_surface_manager_test_api.cc
+++ b/components/mus/ws/server_window_surface_manager_test_api.cc
@@ -19,11 +19,21 @@ void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() {
manager_->type_to_surface_map_[mojom::SurfaceType::DEFAULT] = nullptr;
}
+void ServerWindowSurfaceManagerTestApi::DestroyDefaultSurface() {
+ manager_->type_to_surface_map_.erase(mojom::SurfaceType::DEFAULT);
+}
+
void EnableHitTest(ServerWindow* window) {
ServerWindowSurfaceManagerTestApi test_api(
window->GetOrCreateSurfaceManager());
test_api.CreateEmptyDefaultSurface();
}
+void DisableHitTest(ServerWindow* window) {
+ ServerWindowSurfaceManagerTestApi test_api(
+ window->GetOrCreateSurfaceManager());
+ test_api.DestroyDefaultSurface();
+}
+
} // namespace ws
} // namespace mus
« no previous file with comments | « components/mus/ws/server_window_surface_manager_test_api.h ('k') | components/mus/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698