views: Implement the window menu bar.
This commit is contained in:
parent
2ee7caccfe
commit
0f18d63f7f
6 changed files with 310 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue