[Mac] Update fullscreen state when window is fullscreened natively.
commite401427d392c9a597c059c75d1462d530b4985d7
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 02:29:33 +0000 (16 02:29 +0000)
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 02:29:33 +0000 (16 02:29 +0000)
tree4f9458daeca4e3b6e276fd3796bb9d2aca4250c9
parent66fc6a60850c307d8f61be24b520f0c4d56d7619
[Mac] Update fullscreen state when window is fullscreened natively.

This calls OnNativeWindowChanged when the window enters or exits
fullscreen. It also redundantly calls AppWindow::OSFullscreen and
AppWindow::Restore to get the AppWindow to update it's internal state.

BUG=372301

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

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