From: Cheng Zhao Date: Sat, 23 May 2015 03:58:20 +0000 (+0800) Subject: HandleMouseDown is deprecated X-Git-Tag: v0.27.0~14^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e233eab4f2ae48b40c9ca42933c1bd54ebddec17;p=electron.git HandleMouseDown is deprecated --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 4c99f889..bd1bd764 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -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); diff --git a/atom/browser/native_window_views.h b/atom/browser/native_window_views.h index 15f073d8..ae8b6205 100644 --- a/atom/browser/native_window_views.h +++ b/atom/browser/native_window_views.h @@ -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; diff --git a/vendor/brightray b/vendor/brightray index 7addcd81..748e5b92 160000 --- a/vendor/brightray +++ b/vendor/brightray @@ -1 +1 @@ -Subproject commit 7addcd81c6af25691b09c27bd461d63176eb6b87 +Subproject commit 748e5b922456f352a7cc54c0705d0a997f926a18