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

Unified Diff: content/renderer/render_widget.h

Issue 2394073002: RenderWidget::windowRect and viewRect should apply device emulation transform. (Closed)
Patch Set: Created 4 years, 2 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 85d41a2d59befb9ac090299b3b052b8805760415..b0d0fcb593cf2e2a14f2e62e1c91434c0fab9cba 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -814,6 +814,11 @@ class CONTENT_EXPORT RenderWidget
std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
private:
+ // Applies/Removes the DevTools device emulation transformation to/from a
+ // window rect.
+ void ApplyWindowEmulation(blink::WebRect* window_rect) const;
+ void RemoveWindowEmulation(blink::WebRect* window_rect) const;
+
// Indicates whether this widget has focus.
bool has_focus_;

Powered by Google App Engine
This is Rietveld 408576698