views: Currently set window's frames.

This commit is contained in:
Cheng Zhao 2014-07-04 12:32:03 +08:00
parent 61db17412c
commit 0a38f3321e
4 changed files with 44 additions and 25 deletions

View file

@ -127,6 +127,7 @@ MessageDialog::MessageDialog(NativeWindow* parent_window,
views::Widget::InitParams widget_params;
widget_params.delegate = this;
widget_params.top_level = true;
widget_params.remove_standard_frame = true;
if (parent_window)
widget_params.parent = parent_window->GetNativeWindow();
widget_ = new views::Widget;