]> khamidou — GitHub mirrors - electron.git/commitdiff
Remove default definition of ContentSizeToWindowSize
authorCheng Zhao <zcbenz@gmail.com>
Mon, 5 Oct 2015 16:39:16 +0000 (00:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 5 Oct 2015 16:39:16 +0000 (00:39 +0800)
atom/browser/native_window.cc
atom/browser/native_window.h

index f8023222fb79e04356d3a4108632b07221e04e42..641bdd3757a13dac73e83fc9e07ea9d2c9ad5210 100644 (file)
@@ -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));
 }
index 538783306464156c16705d9a7f318f66314b5343..379c23837b19a17fc2f1d2495c40f77bc23eb7d1 100644 (file)
@@ -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;