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

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

Issue 1489923002: Wire up inset of SetUnderlaySurfaceOffsetAndExtendedHitArea (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/window_finder.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
new file mode 100644
index 0000000000000000000000000000000000000000..606e556b6f8c3f1562f8dbfa5b7d9eae12b85637
--- /dev/null
+++ b/components/mus/ws/server_window_surface_manager_test_api.cc
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/mus/ws/server_window_surface_manager_test_api.h"
+
+#include "components/mus/ws/server_window.h"
+
+namespace mus {
+namespace ws {
+
+ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi(
+ ServerWindowSurfaceManager* manager)
+ : manager_(manager) {}
+
+ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {}
+
+void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() {
+ manager_->type_to_surface_map_[mojom::SURFACE_TYPE_DEFAULT] = nullptr;
+}
+
+void EnableHitTest(ServerWindow* window) {
+ ServerWindowSurfaceManagerTestApi test_api(
+ window->GetOrCreateSurfaceManager());
+ test_api.CreateEmptyDefaultSurface();
+}
+
+} // namespace ws
+} // namespace mus
« no previous file with comments | « components/mus/ws/server_window_surface_manager_test_api.h ('k') | components/mus/ws/window_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698