HandleMouseDown is deprecated

This commit is contained in:
Cheng Zhao 2015-05-23 11:58:20 +08:00
parent b202bba2e6
commit e233eab4f2
3 changed files with 4 additions and 3 deletions

View file

@ -840,7 +840,8 @@ void NativeWindowViews::GetDevToolsWindowWMClass(
}
#endif
void NativeWindowViews::HandleMouseDown() {
void NativeWindowViews::ActivateContents(content::WebContents* contents) {
NativeWindow::ActivateContents(contents);
// Hide menu bar when web view is clicked.
if (menu_bar_autohide_ && menu_bar_visible_)
SetMenuBarVisibility(false);

View file

@ -125,7 +125,7 @@ class NativeWindowViews : public NativeWindow,
#endif
// content::WebContentsDelegate:
void HandleMouseDown() override;
void ActivateContents(content::WebContents* contents) override;
void HandleKeyboardEvent(
content::WebContents*,
const content::NativeWebKeyboardEvent& event) override;