From 7d05a12ee9e3856a28d33c808268ea71caf77dab Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 24 Jun 2015 20:10:07 +0800 Subject: [PATCH] Remove ActivateContents and DeactivateContents --- atom/browser/native_window.cc | 8 -------- atom/browser/native_window.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 5404eba..a8b8e26 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -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); diff --git a/atom/browser/native_window.h b/atom/browser/native_window.h index 0298101..0dfc9e0 100644 --- a/atom/browser/native_window.h +++ b/atom/browser/native_window.h @@ -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; -- 2.7.4