diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 00:12:07 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 00:12:07 +0000 |
commit | db897a0054079a125d89a554c1572fc67ab3321a (patch) | |
tree | fefa3405b58237820ab31cc6ec0856d9066b7a87 /chrome/browser/ui/panels/panel_strip.h | |
parent | 46dc34813419724a9e5f8b9be60703ddcbb04bb4 (diff) | |
download | chromium_src-db897a0054079a125d89a554c1572fc67ab3321a.zip chromium_src-db897a0054079a125d89a554c1572fc67ab3321a.tar.gz chromium_src-db897a0054079a125d89a554c1572fc67ab3321a.tar.bz2 |
Fix bug 105565: Panels should adjust max size and full size if display changes
Changes in this patch:
1) We use same max size for both docked and detach panels.
2) When work area gets changed, we update max size, full size and current size if needed.
2.1) If the panel has not been user-resized, max size is propotional to the work area and will get updated when work area changes.
2.2) If the panel has been user-resized, max size will be kept as long as it does not exceed the work area size.
BUG=105565
TEST=New tests plus manual test by changing screen resolution and verifying panel sizes.
Review URL: https://chromiumcodereview.appspot.com/10356007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/panels/panel_strip.h')
-rw-r--r-- | chrome/browser/ui/panels/panel_strip.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/panels/panel_strip.h b/chrome/browser/ui/panels/panel_strip.h index e263a6bd..74b9f21 100644 --- a/chrome/browser/ui/panels/panel_strip.h +++ b/chrome/browser/ui/panels/panel_strip.h @@ -35,8 +35,9 @@ class PanelStrip { Type type() const { return type_; } - // Sets the bounds of the panel strip. + // Gets/Sets the bounds of the panel strip. // |display_area| is in screen coordinates. + virtual gfx::Rect GetDisplayArea() const = 0; virtual void SetDisplayArea(const gfx::Rect& display_area) = 0; // Updates the positioning of all panels in the collection, usually as |