diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 19:45:56 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 19:45:56 +0000 |
commit | c4043d950bf0316f5a7eacdc6fc51605442c8d97 (patch) | |
tree | a77a8b9714d64e0149fe0a36ab862416efb1d667 /chrome/browser/notifications/balloon_collection_impl.h | |
parent | 5826f3ea7caadda2945b5061b3d757fba9a9e359 (diff) | |
download | chromium_src-c4043d950bf0316f5a7eacdc6fc51605442c8d97.zip chromium_src-c4043d950bf0316f5a7eacdc6fc51605442c8d97.tar.gz chromium_src-c4043d950bf0316f5a7eacdc6fc51605442c8d97.tar.bz2 |
Convert notification UI on Mac to a NIB rather than hand-coded. Also update the UI to reflect the latest mocks. Also improve the animation onto the screen.
BUG=34627
TEST=none
Review URL: http://codereview.chromium.org/2822019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/balloon_collection_impl.h')
-rw-r--r-- | chrome/browser/notifications/balloon_collection_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/notifications/balloon_collection_impl.h b/chrome/browser/notifications/balloon_collection_impl.h index 1f3403a..262df06 100644 --- a/chrome/browser/notifications/balloon_collection_impl.h +++ b/chrome/browser/notifications/balloon_collection_impl.h @@ -51,6 +51,9 @@ class BalloonCollectionImpl : public BalloonCollection { static int min_balloon_height() { return kBalloonMinHeight; } static int max_balloon_height() { return kBalloonMaxHeight; } + // Utility function constrains the input rectangle to the min and max sizes. + static gfx::Size ConstrainToSizeLimits(const gfx::Size& rect); + // Returns both the total space available and the maximum // allowed per balloon. // @@ -75,6 +78,10 @@ class BalloonCollectionImpl : public BalloonCollection { gfx::Point NextPosition(const gfx::Size& balloon_size, gfx::Point* position_iterator) const; + // Return a offscreen location which is offscreen for this layout, + // to be used as the initial position for an animation into view. + gfx::Point OffScreenLocation() const; + private: enum Placement { HORIZONTALLY_FROM_BOTTOM_LEFT, |