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

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

Issue 2491493004: Fix root ServerWindow size. (Closed)
Patch Set: Fixes. Created 4 years, 1 month 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/display_manager.cc ('k') | no next file » | 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 3073cba44cf834ccaf216713039dcbcf8eec5775..a490ff4ee70541f9f37ea7b5c343fb753c564705 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -73,8 +73,10 @@ void DefaultPlatformDisplay::Init(PlatformDisplayDelegate* delegate) {
platform_window_ = base::MakeUnique<ui::WinWindow>(this, bounds);
#elif defined(USE_X11)
platform_window_ = base::MakeUnique<ui::X11Window>(this);
+ platform_window_->SetBounds(bounds);
#elif defined(OS_ANDROID)
platform_window_ = base::MakeUnique<ui::PlatformWindowAndroid>(this);
+ platform_window_->SetBounds(bounds);
#elif defined(USE_OZONE)
platform_window_ =
ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds);
@@ -82,7 +84,6 @@ void DefaultPlatformDisplay::Init(PlatformDisplayDelegate* delegate) {
NOTREACHED() << "Unsupported platform";
#endif
- platform_window_->SetBounds(bounds);
platform_window_->Show();
}
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698