views: Add support for auto-hide menubar.
This commit is contained in:
parent
b139d97f3d
commit
8a9e1824c3
6 changed files with 47 additions and 11 deletions
|
@ -24,10 +24,10 @@ void MenuLayout::Layout(views::View* host) {
|
|||
gfx::Rect web_view_bounds = gfx::Rect(
|
||||
0, menu_height_, size.width(), size.height() - menu_height_);
|
||||
|
||||
views::View* menu_bar = host->child_at(0);
|
||||
views::View* web_view = host->child_at(1);
|
||||
menu_bar->SetBoundsRect(menu_Bar_bounds);
|
||||
views::View* web_view = host->child_at(0);
|
||||
views::View* menu_bar = host->child_at(1);
|
||||
web_view->SetBoundsRect(web_view_bounds);
|
||||
menu_bar->SetBoundsRect(menu_Bar_bounds);
|
||||
}
|
||||
|
||||
gfx::Size MenuLayout::GetPreferredSize(views::View* host) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue