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

Unified Diff: public/web/WebDeviceEmulationParams.h

Issue 342953003: [DevTools] Add offset and scale to WebDeviceEmulationParams. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: now with include Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebDeviceEmulationParams.h
diff --git a/public/web/WebDeviceEmulationParams.h b/public/web/WebDeviceEmulationParams.h
index 0816ca659528ed3b12e898df6341f7ecfb876cb1..ac4dbbd78d81b029df629de7f76542e2e654c9d1 100644
--- a/public/web/WebDeviceEmulationParams.h
+++ b/public/web/WebDeviceEmulationParams.h
@@ -5,6 +5,7 @@
#ifndef WebDeviceEmulationParams_h
#define WebDeviceEmulationParams_h
+#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebSize.h"
@@ -33,10 +34,17 @@ struct WebDeviceEmulationParams {
// Insets of emulated view inside available view space, in fit to view mode.
WebSize viewInsets;
+ // Offset of emulated view inside available space, not in fit to view mode.
+ WebFloatPoint offset;
+
+ // Scale of emulated view inside available space, not in fit to view mode.
+ float scale;
+
WebDeviceEmulationParams()
: screenPosition(Desktop)
, deviceScaleFactor(0)
- , fitToView(false) { }
+ , fitToView(false)
+ , scale(1) { }
};
} // namespace blink
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698