diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 23:25:22 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 23:25:22 +0000 |
commit | 02000dbb8511e4e35d7d90ca494062eda8348149 (patch) | |
tree | d326b2509c57d43572f34b2d455d704327f9224a /chrome/browser/views/browser_actions_container.cc | |
parent | 738669e6dc5d844c100c692cf2ada8e0c3835b45 (diff) | |
download | chromium_src-02000dbb8511e4e35d7d90ca494062eda8348149.zip chromium_src-02000dbb8511e4e35d7d90ca494062eda8348149.tar.gz chromium_src-02000dbb8511e4e35d7d90ca494062eda8348149.tar.bz2 |
Add KEEP_SIZE state to panel and fixed misc bugs.
* Replaced "closed_by_user, update_pane_on_leave_" flags with KEEP_SIZE state. The panel moves to this state when a user interacts with the panel. It keeps its size unless a notification is added, or removed, or it has more space than neccessary when mouse leaves the panel.
* Fixed the crash when the preferred size is calculated to zero (can happen depending on timing) by adding minimum size.
* fixed wrong return type (bool -> int)
* GetNewBounds was using the panel's bounds instead of notification's bounds.
* Refactored and clean up in tests..
BUG=33306
TEST=added two more browser tests for state transition.
Review URL: http://codereview.chromium.org/1164004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/browser_actions_container.cc')
0 files changed, 0 insertions, 0 deletions