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;

2
vendor/brightray vendored

@ -1 +1 @@
Subproject commit 7addcd81c6af25691b09c27bd461d63176eb6b87
Subproject commit 748e5b922456f352a7cc54c0705d0a997f926a18