]> khamidou — GitHub mirrors - electron.git/commitdiff
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 5404eba5979180e2754c5f0b79f2fd4e6e65afe1..a8b8e26b45348838e91534511d95e0dfe8006f31 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 0298101ce043e282ed87cae56b529625f80bfb0c..0dfc9e050b5a6a5e7f59bdbedc9e5c181a2d4765 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;