Description[Reland] Enable AutoResize for Constrained Web Dialogs for Mac.
Currently only constrained web dialogs for views (Linux/Windows) are able to
autoresize. This change implements the option to pass in minimum and maximum
sizes and enabling autoresizing functionality for OSX.
This change adds two static functions for options on whether to create a
ConstrainedWindowsMac that autoresizes or is of fixed size.
The first two patches were reverted because of flaky tests on Mac 10.9.
Those patches can be found at:
1. https://codereview.chromium.org/1430023002
2. https://codereview.chromium.org/1446623003
After some investigation, we found that the failures are being caused by an occlusion notifications in cocoa, which is not expected in browser tests. This is currently mac-only. By disabling these notifications in browser tests, we see this patch passing on the swarming bots that were previously failing. See http://crbug/558585.
The patch to disable occlusion notifications can be found at:
https://codereview.chromium.org/1762883002/
The third patch (same as second patch) broke dialogs like print preview. This was because the change used ui::kWindowSizeDeterminedLater for the dialog window's frame for all constrained web dialogs on mac, not just autoresizable dialogs. That has been amended in this change. That patch can be found here: https://codereview.chromium.org/1699763002/
BUG=217034
Review URL: https://codereview.chromium.org/1781433002
Cr-Commit-Position: refs/heads/master@{#380352}
(cherry picked from commit 740c4109f954a11c544c02132a89fabab767e7ab)
Committed: https://chromium.googlesource.com/chromium/src/+/cc825828ae6b2525431948587a486cc2e3852f67
Patch Set 1 #Messages
Total messages: 2 (1 generated)
|