diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 16:36:01 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 16:36:01 +0000 |
commit | a69ab4dc378391cb4e72f56c0ea87837aea7eea9 (patch) | |
tree | 34f2fed1236c29c1c38157ad16d0fe6ef7ff46cf /chrome/browser/notifications/balloon_collection_impl.h | |
parent | d971bcb9f5abfe8bc8e566cea7f85618381cb8c0 (diff) | |
download | chromium_src-a69ab4dc378391cb4e72f56c0ea87837aea7eea9.zip chromium_src-a69ab4dc378391cb4e72f56c0ea87837aea7eea9.tar.gz chromium_src-a69ab4dc378391cb4e72f56c0ea87837aea7eea9.tar.bz2 |
On Mac, notifications needs the uninverted coordinate space, because we invert already within the layout code. This change puts notifications in the correct place regardless of the height of the dock.
BUG=40593
TEST=notifications on mac, with dock set to NOT auto-hide
Review URL: http://codereview.chromium.org/1593017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44362 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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/notifications/balloon_collection_impl.h b/chrome/browser/notifications/balloon_collection_impl.h index 5b39f6f..1f3403a 100644 --- a/chrome/browser/notifications/balloon_collection_impl.h +++ b/chrome/browser/notifications/balloon_collection_impl.h @@ -111,6 +111,11 @@ class BalloonCollectionImpl : public BalloonCollection { // Adjusts the positions of the balloons (e.g., when one is closed). void PositionBalloons(bool is_reposition); +#if defined(OS_MACOSX) + // Get the work area on Mac OS, without inverting the coordinates. + static gfx::Rect GetMacWorkArea(); +#endif + // Queue of active balloons. typedef std::deque<Balloon*> Balloons; Balloons balloons_; |