]> khamidou — GitHub mirrors - electron.git/commitdiff
No need to override RequestToLockMouse in CommonWebContentsDelegate
authorCheng Zhao <zcbenz@gmail.com>
Mon, 1 Feb 2016 13:05:29 +0000 (21:05 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 1 Feb 2016 13:05:29 +0000 (21:05 +0800)
atom/browser/common_web_contents_delegate.cc
atom/browser/common_web_contents_delegate.h

index 72a664f8cd009bfeb147a4ad65b28e1c200c08a7..1fd6f782de5819c03cd6837aa4635b293b425fc7 100644 (file)
@@ -181,13 +181,6 @@ content::WebContents* CommonWebContentsDelegate::OpenURLFromTab(
   return source;
 }
 
-void CommonWebContentsDelegate::RequestToLockMouse(
-    content::WebContents* web_contents,
-    bool user_gesture,
-    bool last_unlocked_by_target) {
-  GetWebContents()->GotResponseToLockMouseRequest(true);
-}
-
 bool CommonWebContentsDelegate::CanOverscrollContent() const {
   return false;
 }
index ee18f36660ee04932b74884a1e557833235fd45e..828729d795d5430bc308727e5997487aa5477c59 100644 (file)
@@ -59,9 +59,6 @@ class CommonWebContentsDelegate
   content::WebContents* OpenURLFromTab(
       content::WebContents* source,
       const content::OpenURLParams& params) override;
-  void RequestToLockMouse(content::WebContents* web_contents,
-                          bool user_gesture,
-                          bool last_unlocked_by_target) override;
   bool CanOverscrollContent() const override;
   content::JavaScriptDialogManager* GetJavaScriptDialogManager(
       content::WebContents* source) override;