Remove ActivateContents and DeactivateContents
authorCheng Zhao <zcbenz@gmail.com>
Wed, 24 Jun 2015 12:10:07 +0000 (20:10 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 24 Jun 2015 12:10:07 +0000 (20:10 +0800)
atom/browser/native_window.cc
atom/browser/native_window.h

index 5404eba..a8b8e26 100644 (file)
@@ -564,14 +564,6 @@ void NativeWindow::BeforeUnloadFired(content::WebContents* tab,
   }
 }
 
-void NativeWindow::ActivateContents(content::WebContents* contents) {
-  FocusOnWebView();
-}
-
-void NativeWindow::DeactivateContents(content::WebContents* contents) {
-  BlurWebView();
-}
-
 void NativeWindow::MoveContents(content::WebContents* source,
                                 const gfx::Rect& pos) {
   SetBounds(pos);
index 0298101..0dfc9e0 100644 (file)
@@ -235,8 +235,6 @@ class NativeWindow : public CommonWebContentsDelegate,
   void BeforeUnloadFired(content::WebContents* tab,
                          bool proceed,
                          bool* proceed_to_fire_unload) override;
-  void ActivateContents(content::WebContents* contents) override;
-  void DeactivateContents(content::WebContents* contents) override;
   void MoveContents(content::WebContents* source,
                     const gfx::Rect& pos) override;
   void CloseContents(content::WebContents* source) override;