Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1217)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2400243002: Remove grow box rect support, browser part. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 99a0ea118764e79676e00a9078bfc6a5bbbb72f1..6e0a94fd7fa738f9143c4512187efca87c3c6807 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1370,14 +1370,6 @@ void WebContentsImpl::WasShown() {
last_active_time_ = base::TimeTicks::Now();
- // The resize rect might have changed while this was inactive -- send the new
- // one to make sure it's up to date.
- RenderViewHostImpl* rvh = GetRenderViewHost();
- if (rvh) {
- rvh->GetWidget()->ResizeRectChanged(
- GetRootWindowResizerRect(rvh->GetWidget()));
- }
-
FOR_EACH_OBSERVER(WebContentsObserver, observers_, WasShown());
should_normally_be_visible_ = true;
@@ -4223,16 +4215,6 @@ RendererPreferences WebContentsImpl::GetRendererPrefs(
return renderer_preferences_;
}
-gfx::Rect WebContentsImpl::GetRootWindowResizerRect(
- RenderWidgetHostImpl* render_widget_host) const {
- if (!RenderViewHostImpl::From(render_widget_host))
- return gfx::Rect();
-
- if (delegate_)
- return delegate_->GetRootWindowResizerRect();
- return gfx::Rect();
-}
-
void WebContentsImpl::RemoveBrowserPluginEmbedder() {
if (browser_plugin_embedder_)
browser_plugin_embedder_.reset();
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698