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

Unified Diff: services/ui/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: Fix namespace comments Created 4 years, 5 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 | « services/ui/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: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index 1536692a40d9f038c31875183a086e25f8298cbc..e0a96eeb751c32b60eccf7d686ea4dc48b939aa2 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -108,6 +108,22 @@ PlatformDisplay* TestPlatformDisplayFactory::CreatePlatformDisplay() {
return new TestPlatformDisplay(cursor_id_storage_);
}
+// TestFrameGeneratorDelegate -------------------------------------------------
+
+TestFrameGeneratorDelegate::TestFrameGeneratorDelegate(
+ std::unique_ptr<ServerWindow> root)
+ : root_(std::move(root)) {}
+
+TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {}
+
+ServerWindow* TestFrameGeneratorDelegate::GetRootWindow() {
+ return root_.get();
+}
+
+const ViewportMetrics& TestFrameGeneratorDelegate::GetViewportMetrics() {
+ return metrics_;
+}
+
// WindowTreeTestApi ---------------------------------------------------------
WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698