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 72a664f..1fd6f78 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 ee18f36..828729d 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;