summaryrefslogtreecommitdiff
path: root/chromium/content/common/resize_params.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/resize_params.h')
-rw-r--r--chromium/content/common/resize_params.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/chromium/content/common/resize_params.h b/chromium/content/common/resize_params.h
index 2bea4764eb5..51c472dd522 100644
--- a/chromium/content/common/resize_params.h
+++ b/chromium/content/common/resize_params.h
@@ -9,7 +9,7 @@
#include "components/viz/common/surfaces/local_surface_id.h"
#include "content/common/content_export.h"
#include "content/public/common/screen_info.h"
-#include "third_party/WebKit/public/platform/WebDisplayMode.h"
+#include "third_party/blink/public/platform/web_display_mode.h"
#include "ui/gfx/geometry/size.h"
namespace content {
@@ -22,6 +22,20 @@ struct CONTENT_EXPORT ResizeParams {
// Information about the screen (dpi, depth, etc..).
ScreenInfo screen_info;
+ // Whether or not blink should be in auto-resize mode.
+ bool auto_resize_enabled;
+
+ // The minimum size for Blink if auto-resize is enabled.
+ gfx::Size min_size_for_auto_resize;
+
+ // The maximum size for Blink if auto-resize is enabled.
+ gfx::Size max_size_for_auto_resize;
+
+ // This variable is increased after each auto-resize. If the
+ // renderer receives a ResizeParams with stale auto_resize_seqence_number,
+ // then the resize request is dropped.
+ uint64_t auto_resize_sequence_number;
+
// The size for the widget in DIPs.
gfx::Size new_size;