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

Unified Diff: content/renderer/render_widget.h

Issue 15402010: When short-circuiting resize requests, keep track what the browser thinks the current size is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 3660f75d57c2a3636a61edd176e106dcd4db4f43..2ab778c82ff41932cf3888e03f72711716a59b2d 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -529,6 +529,12 @@ class CONTENT_EXPORT RenderWidget
// The size of the RenderWidget.
gfx::Size size_;
+ // When short-circuiting size updates, the browser might not know about the
+ // current size of the RenderWidget. To be able to correctly predict when the
+ // browser expects a resize ack, keep track of the size the browser thinks
+ // this RenderWidget should have.
+ gfx::Size size_browser_expects_;
+
// The TransportDIB that is being used to transfer an image to the browser.
TransportDIB* current_paint_buf_;
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698