views: Implement the window menu bar.

This commit is contained in:
Cheng Zhao 2014-07-17 14:23:28 +08:00
parent 2ee7caccfe
commit 0f18d63f7f
6 changed files with 310 additions and 6 deletions

View file

@ -304,6 +304,9 @@ void NativeWindowViews::SetMenu(ui::MenuModel* menu_model) {
AddChildViewAt(menu_bar_, 0);
SetContentSize(content_size);
}
menu_bar_->SetMenu(menu_model);
Layout();
}
gfx::NativeWindow NativeWindowViews::GetNativeWindow() {