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

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

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
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 19cb43215c0baa0fd70c3bcf27f6bb3a3beb409c..2c88847f02aad29d1dfb86b719b3507738086703 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -216,6 +216,30 @@ class TestPlatformDisplayFactory : public PlatformDisplayFactory {
// -----------------------------------------------------------------------------
+// A stub implementation of PlatformDisplayDelegate containing a root
+// ServerWindow.
+class TestPlatformDisplayDelegate : public PlatformDisplayDelegate {
+ public:
+ TestPlatformDisplayDelegate(std::unique_ptr<ServerWindow> root);
sky 2016/06/27 15:17:08 explicit
mfomitchev 2016/06/30 22:06:03 Done.
+ ~TestPlatformDisplayDelegate() override;
+
+ // PlatformDisplayDelegate:
+ ServerWindow* GetRootWindow() override;
+ void OnDisplayClosed() override {}
+ void OnEvent(const ui::Event& event) override {}
+ void OnNativeCaptureLost() override {}
+ void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
+ const ViewportMetrics& new_metrics) override {}
+ void OnCompositorFrameDrawn() override {}
+
+ private:
+ std::unique_ptr<ServerWindow> root_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayDelegate);
+};
+
+// -----------------------------------------------------------------------------
+
class TestWindowManager : public mojom::WindowManager {
public:
TestWindowManager()

Powered by Google App Engine
This is Rietveld 408576698