macviews: honor BrowserView minimum size

BrowserNonClientFrameViewMac ignores the size constraints of the BrowserView
and uses a hardcoded window size. This breaks when the BrowserView's layout
requires more space than the hardcoded window minimum size allows. This change
causes BrowserNonClientFrameViewMac to compute the its minimum size correctly
(including the Mac-specific width-to-height ratio for minimum sizes) and keeps
it synced to the WindowServer so that window resizes actually honor it.

Bug: 921964
Change-Id: I696471cbfbc6fdb0fa9f269a17a10f458536ca89
Reviewed-by: Dana Fried <>
Commit-Queue: Elly Fong-Jones <>
Cr-Commit-Position: refs/heads/master@{#624785}
3 files changed