MacViews: Dialogs don't become main.
commit9b0bb0856b3e7aab010431c70539f324b0690251
authortapted <tapted@chromium.org>
Thu, 4 Jun 2015 07:25:55 +0000 (4 00:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 07:26:34 +0000 (4 07:26 +0000)
tree3699f3b4d746f30d40599bca910680e31b75fa74
parentae7dcdb9939a830abcb52420f104518ae773b13c
MacViews: Dialogs don't become main.

Dialog Widgets should return NO from -[NSWindow canBecomeMainWindow] so
that they don't steal the large window shadow from their parent.

BUG=485854

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

Cr-Commit-Position: refs/heads/master@{#332795}
ui/views/cocoa/native_widget_mac_nswindow.mm
ui/views/widget/native_widget_mac_unittest.mm