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

Unified Diff: content/renderer/render_widget.h

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | 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 5b763b59f0be31a0e3ca5d85abe2600be4738438..653564e0d482d12b95345643ae51aa8a11274afb 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -269,6 +269,7 @@ class CONTENT_EXPORT RenderWidget
// Resizes the render widget.
void Resize(const gfx::Size& new_size,
+ const gfx::Size& physical_backing_size,
const gfx::Rect& resizer_rect,
bool is_fullscreen,
ResizeAck resize_ack);
@@ -277,6 +278,7 @@ class CONTENT_EXPORT RenderWidget
void OnClose();
void OnCreatingNewAck();
virtual void OnResize(const gfx::Size& new_size,
+ const gfx::Size& physical_backing_size,
const gfx::Rect& resizer_rect,
bool is_fullscreen);
void OnChangeResizeRect(const gfx::Rect& resizer_rect);
@@ -501,6 +503,9 @@ class CONTENT_EXPORT RenderWidget
PaintAggregator paint_aggregator_;
+ // The size of the view's backing surface in non-DPI-adjusted pixels.
+ gfx::Size physical_backing_size_;
+
// The area that must be reserved for drawing the resize corner.
gfx::Rect resizer_rect_;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698