From e233eab4f2ae48b40c9ca42933c1bd54ebddec17 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 23 May 2015 11:58:20 +0800 Subject: [PATCH] HandleMouseDown is deprecated --- atom/browser/native_window_views.cc | 3 ++- atom/browser/native_window_views.h | 2 +- vendor/brightray | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.43.0