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

Unified Diff: content/renderer/render_widget.h

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Let ResizeWebWidget decide whether to resize Created 4 years, 8 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/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index d88519061578b5fcbaea746467bdb209f58128e7..681ab1b5b39017a4c5dc1c1d648edbdaf9ed378b 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -412,6 +412,8 @@ class CONTENT_EXPORT RenderWidget
void DoDeferredClose();
void NotifyOnClose();
+ virtual void ResizeWebWidget(const ResizeParams& params);
+
// Close the underlying WebWidget.
virtual void Close();
@@ -605,14 +607,6 @@ class CONTENT_EXPORT RenderWidget
// The size of the view's backing surface in non-DPI-adjusted pixels.
gfx::Size physical_backing_size_;
- // Whether or not Blink's viewport size should be shrunk by the height of the
- // URL-bar (always false on platforms where URL-bar hiding isn't supported).
- bool top_controls_shrink_blink_size_;
-
- // The height of the top controls (always 0 on platforms where URL-bar hiding
- // isn't supported).
- float top_controls_height_;
-
// The size of the visible viewport in DPI-adjusted pixels.
gfx::Size visible_viewport_size_;
@@ -767,10 +761,10 @@ class CONTENT_EXPORT RenderWidget
scoped_ptr<scheduler::RenderWidgetSchedulingState>
render_widget_scheduling_state_;
- private:
// When emulated, this returns original device scale factor.
float GetOriginalDeviceScaleFactor() const;
+ private:
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};

Powered by Google App Engine
This is Rietveld 408576698