diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 18:57:52 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 18:57:52 +0000 |
commit | bed993526f4cbc826d9cf82dea03a9e18ee17501 (patch) | |
tree | e09941f28a4b04db3e562a964f01ba4d62029f24 /chrome/tools/pbl_tool | |
parent | 99f85220286b80eff1a83ae2ad6da432bc5e8a29 (diff) | |
download | chromium_src-bed993526f4cbc826d9cf82dea03a9e18ee17501.zip chromium_src-bed993526f4cbc826d9cf82dea03a9e18ee17501.tar.gz chromium_src-bed993526f4cbc826d9cf82dea03a9e18ee17501.tar.bz2 |
Update the browser window's shape on state change.
When launching the browser we restore the maximized state. However, the maximize call is asynchronous, so we don't actually observe the change to |state_| until later. So we need to update the shape on that later state-changed signal.
Usually if the user maximizes the window, it will change sizes. To avoid setting the window's shape more often than necessary, cache its current state (custom shape or no custom shape).
BUG=none
TEST=maximize the window, close chrome, re open chrome. It should not have a custom shape.
Review URL: http://codereview.chromium.org/150081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/pbl_tool')
0 files changed, 0 insertions, 0 deletions