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

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

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.h ('k') | services/ui/ws/platform_display_default.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index e008e955ab0de8216baf27548deaf5dacb481dc8..36d8b65676374a7dc3e9650e1fd812773d3caf88 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -7,7 +7,7 @@
#include "base/memory/ptr_util.h"
#include "services/ui/ws/platform_display_default.h"
#include "services/ui/ws/platform_display_factory.h"
-#include "services/ui/ws/platform_display_init_params.h"
+#include "services/ui/ws/server_window.h"
namespace ui {
namespace ws {
@@ -17,11 +17,12 @@ PlatformDisplayFactory* PlatformDisplay::factory_ = nullptr;
// static
std::unique_ptr<PlatformDisplay> PlatformDisplay::Create(
- const PlatformDisplayInitParams& init_params) {
+ ServerWindow* root,
+ const display::ViewportMetrics& metrics) {
if (factory_)
- return factory_->CreatePlatformDisplay(init_params);
+ return factory_->CreatePlatformDisplay(root, metrics);
- return base::MakeUnique<PlatformDisplayDefault>(init_params);
+ return base::MakeUnique<PlatformDisplayDefault>(root, metrics);
}
} // namespace ws
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698