]> khamidou — GitHub mirrors - electron.git/commitdiff
HandleMouseDown is deprecated
authorCheng Zhao <zcbenz@gmail.com>
Sat, 23 May 2015 03:58:20 +0000 (11:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 23 May 2015 03:58:20 +0000 (11:58 +0800)
atom/browser/native_window_views.cc
atom/browser/native_window_views.h
vendor/brightray

index 4c99f88969baad0f95fb2bc25beeb7e45d4dce92..bd1bd76478eb11c921123a226bc9afff775bebf5 100644 (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);
index 15f073d8d8c1de1e19a32842786f3c5113543e63..ae8b6205321abf13fc894314ee7c25f2a5aac817 100644 (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;
index 7addcd81c6af25691b09c27bd461d63176eb6b87..748e5b922456f352a7cc54c0705d0a997f926a18 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 7addcd81c6af25691b09c27bd461d63176eb6b87
+Subproject commit 748e5b922456f352a7cc54c0705d0a997f926a18