DescriptionAdd 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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42282
Patch Set 1 #Patch Set 2 : " #Patch Set 3 : " #
Messages
Total messages: 2 (0 generated)
|