diff options
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, |