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

Unified Diff: services/ui/ws/platform_display_factory.h

Issue 2736943003: Start to decouple display::Display from ws::PlatformDisplay. (Closed)
Patch Set: Fix comments. Created 3 years, 9 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/platform_display_delegate.h ('k') | services/ui/ws/platform_display_init_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_factory.h
diff --git a/services/ui/ws/platform_display_factory.h b/services/ui/ws/platform_display_factory.h
index e0f1be93d70fbdf80f06f2c0c7b821f086771e56..99e17af3e849668f79868295f4da4372d6c03584 100644
--- a/services/ui/ws/platform_display_factory.h
+++ b/services/ui/ws/platform_display_factory.h
@@ -7,18 +7,23 @@
#include <memory>
+namespace display {
+struct ViewportMetrics;
+}
+
namespace ui {
namespace ws {
class PlatformDisplay;
-struct PlatformDisplayInitParams;
+class ServerWindow;
// Abstract factory for PlatformDisplays. Used by tests to construct test
// PlatformDisplays.
class PlatformDisplayFactory {
public:
virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay(
- const PlatformDisplayInitParams& init_params) = 0;
+ ServerWindow* root_window,
+ const display::ViewportMetrics& metrics) = 0;
};
} // namespace ws
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/platform_display_init_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698