Remove default definition of ContentSizeToWindowSize

This commit is contained in:
Cheng Zhao 2015-10-06 00:39:16 +08:00
parent c8723238f8
commit b70e7c6a4c
2 changed files with 2 additions and 10 deletions

View 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));
}

View 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;