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

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

Issue 2099893002: Mus: Fixes rendering of transparent containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« components/mus/ws/test_utils.h ('K') | « components/mus/ws/test_utils.h ('k') | no next file » | 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 a371a0bb4708f24d86a1cfebdcbfad4651a3f8ae..1015495953fe884188b930d834f1488c1d814e60 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -107,6 +107,18 @@ PlatformDisplay* TestPlatformDisplayFactory::CreatePlatformDisplay() {
return new TestPlatformDisplay(cursor_id_storage_);
}
+// TestPlatformDisplayDelegate -------------------------------------------------
+
+TestPlatformDisplayDelegate::TestPlatformDisplayDelegate(
+ std::unique_ptr<ServerWindow> root)
+ : root_(std::move(root)) {}
+
+TestPlatformDisplayDelegate::~TestPlatformDisplayDelegate() {}
+
+ServerWindow* TestPlatformDisplayDelegate::GetRootWindow() {
+ return root_.get();
+}
+
// WindowTreeTestApi ---------------------------------------------------------
WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
« components/mus/ws/test_utils.h ('K') | « components/mus/ws/test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698