mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove default definition of ContentSizeToWindowSize
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user