views: Hide menu bar when web view is clicked.
This commit is contained in:
parent
f219e7f0dd
commit
92d6fd641f
2 changed files with 8 additions and 0 deletions
|
@ -537,6 +537,13 @@ views::NonClientFrameView* NativeWindowViews::CreateNonClientFrameView(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void NativeWindowViews::HandleMouseDown() {
|
||||
if (menu_bar_autohide_ && menu_bar_show_) {
|
||||
SetMenuBarVisibility(false);
|
||||
Layout();
|
||||
}
|
||||
}
|
||||
|
||||
void NativeWindowViews::HandleKeyboardEvent(
|
||||
content::WebContents*,
|
||||
const content::NativeWebKeyboardEvent& event) {
|
||||
|
|
|
@ -107,6 +107,7 @@ class NativeWindowViews : public NativeWindow,
|
|||
views::Widget* widget) OVERRIDE;
|
||||
|
||||
// content::WebContentsDelegate:
|
||||
virtual void HandleMouseDown() OVERRIDE;
|
||||
virtual void HandleKeyboardEvent(
|
||||
content::WebContents*,
|
||||
const content::NativeWebKeyboardEvent& event) OVERRIDE;
|
||||
|
|
Loading…
Reference in a new issue