OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Handles the visible notification (or balloons). | 5 // Handles the visible notification (or balloons). |
6 | 6 |
7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "chrome/browser/notifications/balloon_collection.h" | 15 #include "chrome/browser/notifications/balloon_collection.h" |
16 #include "chrome/browser/notifications/balloon_collection_base.h" | 16 #include "chrome/browser/notifications/balloon_collection_base.h" |
17 #include "gfx/point.h" | 17 #include "ui/gfx/point.h" |
18 #include "gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 | 19 |
20 // Mac balloons grow from the top down and have close buttons on top, so | 20 // Mac balloons grow from the top down and have close buttons on top, so |
21 // offsetting is not necessary for easy multiple-closing. Other platforms grow | 21 // offsetting is not necessary for easy multiple-closing. Other platforms grow |
22 // from the bottom up and have close buttons on top, so it is necessary. | 22 // from the bottom up and have close buttons on top, so it is necessary. |
23 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
24 #define USE_OFFSETS 0 | 24 #define USE_OFFSETS 0 |
25 #else | 25 #else |
26 #define USE_OFFSETS 1 | 26 #define USE_OFFSETS 1 |
27 #endif | 27 #endif |
28 | 28 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; | 186 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; |
187 | 187 |
188 // Is the balloon collection currently listening for UI events? | 188 // Is the balloon collection currently listening for UI events? |
189 bool added_as_message_loop_observer_; | 189 bool added_as_message_loop_observer_; |
190 #endif | 190 #endif |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); | 192 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); |
193 }; | 193 }; |
194 | 194 |
195 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 195 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
OLD | NEW |