Fix restoring a window after maximizing it. (Mac)

Currently the window does not restore to its original size because we
save the current size of the window whenever it's resized. However,
during a zoom (maximize), the windowDidResize notification is fired on
every animation frame.

In this CL, the current size is only saved after the animation finishes.
|is_maximized_| and |is_fullscreen_| are also updated when a resize
finishes, and when going in and out of fullscreen.

BUG=168080, 230778, 302053
TEST=Maximize and restore an app window, it should return to its original size.
TEST=Do the following sequence on an app window:
Maximize, fullscreen, exit fullscreen, then restore.
The app should return to its original size.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226401 0039d316-1c4b-4281-b951-d872f2087c98
Media Galleries API Picasa: End-to-end browsertest.

Adds an end-to-end browser test to Picasa.

Dependent on this fix going through:
https://codereview.chromium.org/24269007/

BUG=151701

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226402 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 226402