refactor: Make NativeWindow inherit WidgetDelegate

This commit is contained in:
Cheng Zhao 2018-04-25 15:51:54 +09:00
parent ee2c3607ad
commit 6d18bd0633
4 changed files with 8 additions and 7 deletions

View file

@ -138,6 +138,9 @@ NativeWindowViews::NativeWindowViews(const mate::Dictionary& options,
maximizable_(true),
minimizable_(true),
fullscreenable_(true) {
// The root view is this class, it is managed by us.
set_owned_by_client();
options.Get(options::kTitle, &title_);
options.Get(options::kAutoHideMenuBar, &menu_bar_autohide_);