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

Unified Diff: content/renderer/render_widget.h

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 50392c905405fe8154fce655f74824e5058e9419..6fa045a2b0f813cd93d71d0751263b7360c8f579 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -398,9 +398,8 @@ class CONTENT_EXPORT RenderWidget
// Used to force the size of a window when running layout tests.
void SetWindowRectSynchronously(const gfx::Rect& new_window_rect);
virtual void SetScreenMetricsEmulationParameters(
- float device_scale_factor,
- const gfx::Point& root_layer_offset,
- float root_layer_scale);
+ bool enabled,
+ const blink::WebDeviceEmulationParams& params);
#if defined(OS_MACOSX) || defined(OS_ANDROID)
void SetExternalPopupOriginAdjustmentsForEmulation(
ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator);
@@ -784,8 +783,8 @@ class CONTENT_EXPORT RenderWidget
// Popups may be displaced when screen metrics emulation is enabled.
// These values are used to properly adjust popup position.
- gfx::Point popup_view_origin_for_emulation_;
- gfx::Point popup_screen_origin_for_emulation_;
+ gfx::PointF popup_view_origin_for_emulation_;
+ gfx::PointF popup_screen_origin_for_emulation_;
float popup_origin_scale_for_emulation_;
scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;

Powered by Google App Engine
This is Rietveld 408576698