Remove default definition of ContentSizeToWindowSize
This commit is contained in:
parent
c8723238f8
commit
b70e7c6a4c
2 changed files with 2 additions and 10 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue