mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
remove GetSizeForNewRenderView
This commit is contained in:
@@ -1642,16 +1642,6 @@ void WebContents::Invalidate() {
|
||||
}
|
||||
}
|
||||
|
||||
gfx::Size WebContents::GetSizeForNewRenderView(
|
||||
content::WebContents* web_contents) const {
|
||||
auto relay = NativeWindowRelay::FromWebContents(web_contents);
|
||||
if (relay) {
|
||||
return relay->window->GetSize();
|
||||
}
|
||||
|
||||
return gfx::Size();
|
||||
}
|
||||
|
||||
void WebContents::SetZoomLevel(double level) {
|
||||
zoom_controller_->SetZoomLevel(level);
|
||||
}
|
||||
|
||||
@@ -183,7 +183,6 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
||||
void SetFrameRate(int frame_rate);
|
||||
int GetFrameRate() const;
|
||||
void Invalidate();
|
||||
gfx::Size GetSizeForNewRenderView(content::WebContents*) const override;
|
||||
|
||||
// Methods for zoom handling.
|
||||
void SetZoomLevel(double level);
|
||||
|
||||
Reference in New Issue
Block a user