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

Unified Diff: content/renderer/devtools/render_widget_screen_metrics_emulator.cc

Issue 1685213002: Propagate window coordinates to out-of-process iframes renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sendscreenrects
Patch Set: addressing comments Created 4 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
Index: content/renderer/devtools/render_widget_screen_metrics_emulator.cc
diff --git a/content/renderer/devtools/render_widget_screen_metrics_emulator.cc b/content/renderer/devtools/render_widget_screen_metrics_emulator.cc
index 1022c27c29e91b3e715f9e10f31c50e1191948c5..d7d83978f09bd5abb03f67ef9bbeafdc5c4201d5 100644
--- a/content/renderer/devtools/render_widget_screen_metrics_emulator.cc
+++ b/content/renderer/devtools/render_widget_screen_metrics_emulator.cc
@@ -140,6 +140,14 @@ void RenderWidgetScreenMetricsEmulator::OnResize(const ResizeParams& params) {
delegate_->Redraw();
}
+void RenderWidgetScreenMetricsEmulator::OnUpdateWindowScreenRectMessage(
+ const gfx::Rect& window_screen_rect) {
+ original_window_screen_rect_ = window_screen_rect;
+ if (emulation_params_.screenPosition ==
+ blink::WebDeviceEmulationParams::Desktop)
+ Apply();
+}
+
void RenderWidgetScreenMetricsEmulator::OnUpdateScreenRects(
const gfx::Rect& view_screen_rect,
const gfx::Rect& window_screen_rect) {

Powered by Google App Engine
This is Rietveld 408576698