Always set NSTexturedBackgroundWindowMask on app windows.
commit333ad1ded0e536d08df7eef72df345476258c37d
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 May 2014 10:14:59 +0000 (30 10:14 +0000)
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 May 2014 10:14:59 +0000 (30 10:14 +0000)
treef0ebcbcdf85a58d71f08ae442733f5bfcae5937a
parent0a1028720842edd2df5e02a8b08ccb088be354ec
Always set NSTexturedBackgroundWindowMask on app windows.

This is consistent with FramedBrowserWindow.

This also skips drawing the frame of frameless windows.

On OSX 10.7, if NSTexturedBackgroundWindowMask is set, NSGrayFrame is
used to draw the frame. If not, NSThemeFrame is used. Since we swizzle
drawing methods on NSGrayFrame on 10.7, the app windows should all use
NSGrayFrame.

BUG=378581

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273781 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm