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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). Created 3 years, 10 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 9b64f82bd3e837edad5a73c5f131a1f964fca930..1adb5cae8bd9df173a35f6342f9536bd8b79c660 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1802,7 +1802,7 @@ void RenderWidgetHostImpl::OnUpdateScreenRectsAck() {
void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) {
if (view_) {
- view_->SetBounds(pos);
+ view_->RequestTopLevelBoundsInScreen(pos);
Send(new ViewMsg_Move_ACK(routing_id_));
}
}

Powered by Google App Engine
This is Rietveld 408576698