[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 initial patch was reverted because of flaky tests in Mac 10.9. Upon further investigation, the ConstrainedWebDialogBrowserTest tests were also flaky on other Mac versions, such as 10.10. At the time, the test would fail once every 4-5,000 runs. After picking up this patch again, I was unable to repro the failing test after ~20,000 runs.

The original patch can be found at: https://codereview.chromium.org/1430023002

BUG=217034

Review URL: https://codereview.chromium.org/1446623003

Cr-Commit-Position: refs/heads/master@{#374039}
39 files changed