diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 86e563bcb30c..2ebe44e55735 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -587,8 +587,8 @@ void WebContents::BeforeUnloadFired(content::WebContents* tab, *proceed_to_fire_unload = true; } -void WebContents::MoveContents(content::WebContents* source, - const gfx::Rect& pos) { +void WebContents::SetContentsBounds(content::WebContents* source, + const gfx::Rect& pos) { Emit("move", pos); } @@ -612,10 +612,6 @@ void WebContents::UpdateTargetURL(content::WebContents* source, Emit("update-target-url", url); } -bool WebContents::IsPopupOrPanel(const content::WebContents* source) const { - return type_ == BROWSER_WINDOW; -} - void WebContents::HandleKeyboardEvent( content::WebContents* source, const content::NativeWebKeyboardEvent& event) { diff --git a/atom/browser/api/atom_api_web_contents.h b/atom/browser/api/atom_api_web_contents.h index 3745bccaddf3..5951efff7a08 100644 --- a/atom/browser/api/atom_api_web_contents.h +++ b/atom/browser/api/atom_api_web_contents.h @@ -314,12 +314,11 @@ class WebContents : public mate::TrackableObject, void BeforeUnloadFired(content::WebContents* tab, bool proceed, bool* proceed_to_fire_unload) override; - void MoveContents(content::WebContents* source, - const gfx::Rect& pos) override; + void SetContentsBounds(content::WebContents* source, + const gfx::Rect& pos) override; void CloseContents(content::WebContents* source) override; void ActivateContents(content::WebContents* contents) override; void UpdateTargetURL(content::WebContents* source, const GURL& url) override; - bool IsPopupOrPanel(const content::WebContents* source) const override; void HandleKeyboardEvent( content::WebContents* source, const content::NativeWebKeyboardEvent& event) override;