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

Unified Diff: content/renderer/render_widget.h

Issue 2248823003: Use the correct scale factor when rendering RemoteFrames with UseZoomForDSF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use enclosing rect Created 4 years, 4 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 e41360aea8e3b86eddd21ba14128671913be2565..164c0bc51f62231c46efef45219c120983513f62 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -376,6 +376,9 @@ class CONTENT_EXPORT RenderWidget
focused_pepper_plugin_ = plugin;
}
+ // When emulated, this returns original device scale factor.
+ float GetOriginalDeviceScaleFactor() const;
+
protected:
// Friend RefCounted so that the dtor can be non-public. Using this class
// without ref-counting is an error.
@@ -781,9 +784,6 @@ class CONTENT_EXPORT RenderWidget
std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
private:
- // When emulated, this returns original device scale factor.
- float GetOriginalDeviceScaleFactor() const;
-
// Indicates whether this widget has focus.
bool has_focus_;

Powered by Google App Engine
This is Rietveld 408576698