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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 1565243002: Fixes bug where client area would not get set correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « ui/views/mus/native_widget_mus.h ('k') | ui/views/widget/android/native_widget_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 4df9aeb82e2ae1ed3bedb351d2ce88f056175551..abe4462f584e2bc3f5e51e3acada8ce15a915372 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -309,6 +309,14 @@ void NativeWidgetMus::InitNativeWidget(const Widget::InitParams& params) {
native_widget_delegate_->OnNativeWidgetCreated(false);
}
+void NativeWidgetMus::OnWidgetInitDone() {
+ // The client area is calculated from the NonClientView. During
+ // InitNativeWidget() the NonClientView has not been created. When this
+ // function is called the NonClientView has been created, so that we can
+ // correctly calculate the client area and push it to the mus::Window.
+ UpdateClientArea();
+}
+
bool NativeWidgetMus::ShouldUseNativeFrame() const {
// NOTIMPLEMENTED();
return false;
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/widget/android/native_widget_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698