From: Cheng Zhao Date: Mon, 5 Oct 2015 16:39:16 +0000 (+0800) Subject: Remove default definition of ContentSizeToWindowSize X-Git-Tag: v0.33.7~26^2~4^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b70e7c6a4cc51548769075f3f9925430e2435746;p=electron.git Remove default definition of ContentSizeToWindowSize --- diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index f8023222..641bdd37 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -170,14 +170,6 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) { Show(); } -gfx::Size NativeWindow::ContentSizeToWindowSize(const gfx::Size& size) { - return size; -} - -gfx::Size NativeWindow::WindowSizeToContentSize(const gfx::Size& size) { - return size; -} - void NativeWindow::SetSize(const gfx::Size& size) { SetBounds(gfx::Rect(GetPosition(), size)); } diff --git a/atom/browser/native_window.h b/atom/browser/native_window.h index 53878330..379c2383 100644 --- a/atom/browser/native_window.h +++ b/atom/browser/native_window.h @@ -242,8 +242,8 @@ class NativeWindow : public base::SupportsUserData, const mate::Dictionary& options); // Converts between content size to window size. - virtual gfx::Size ContentSizeToWindowSize(const gfx::Size& size); - virtual gfx::Size WindowSizeToContentSize(const gfx::Size& size); + virtual gfx::Size ContentSizeToWindowSize(const gfx::Size& size) = 0; + virtual gfx::Size WindowSizeToContentSize(const gfx::Size& size) = 0; // content::WebContentsObserver: void RenderViewCreated(content::RenderViewHost* render_view_host) override;