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

Unified Diff: services/ui/ws/test_utils.cc

Issue 2613903003: Reland of "Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embe… (Closed)
Patch Set: fix Created 3 years, 11 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') | ui/aura/BUILD.gn » ('j') | 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 947f0898323dedc43f468db10c834b8ab244fd38..5c50fae5d6c7fb6a3fd0e1feed5bc40dcd6b074d 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -151,10 +151,16 @@ TestPlatformDisplayFactory::CreatePlatformDisplay(
// TestFrameGeneratorDelegate -------------------------------------------------
-TestFrameGeneratorDelegate::TestFrameGeneratorDelegate() {}
+TestFrameGeneratorDelegate::TestFrameGeneratorDelegate(
+ ServerWindow* root_window)
+ : root_window_(root_window) {}
TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {}
+ServerWindow* TestFrameGeneratorDelegate::GetActiveRootWindow() {
+ return root_window_;
+}
+
bool TestFrameGeneratorDelegate::IsInHighContrastMode() {
return false;
}
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | ui/aura/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698