| 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_H_ | 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
| 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 gfx::Point* position_iterator) const; | 114 gfx::Point* position_iterator) const; |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 enum Placement { | 117 enum Placement { |
| 118 HORIZONTALLY_FROM_BOTTOM_LEFT, | 118 HORIZONTALLY_FROM_BOTTOM_LEFT, |
| 119 HORIZONTALLY_FROM_BOTTOM_RIGHT, | 119 HORIZONTALLY_FROM_BOTTOM_RIGHT, |
| 120 VERTICALLY_FROM_TOP_RIGHT, | 120 VERTICALLY_FROM_TOP_RIGHT, |
| 121 VERTICALLY_FROM_BOTTOM_RIGHT | 121 VERTICALLY_FROM_BOTTOM_RIGHT |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 // Layout parameters |
| 125 int VerticalEdgeMargin() const; |
| 126 int HorizontalEdgeMargin() const; |
| 127 int InterBalloonMargin() const; |
| 128 |
| 124 // Minimum and maximum size of balloon content. | 129 // Minimum and maximum size of balloon content. |
| 125 static const int kBalloonMinWidth = 300; | 130 static const int kBalloonMinWidth = 300; |
| 126 static const int kBalloonMaxWidth = 300; | 131 static const int kBalloonMaxWidth = 300; |
| 127 static const int kBalloonMinHeight = 48; | 132 static const int kBalloonMinHeight = 48; |
| 128 static const int kBalloonMaxHeight = 120; | 133 static const int kBalloonMaxHeight = 120; |
| 129 | 134 |
| 130 static Placement placement_; | 135 static Placement placement_; |
| 131 gfx::Rect work_area_; | 136 gfx::Rect work_area_; |
| 132 DISALLOW_COPY_AND_ASSIGN(Layout); | 137 DISALLOW_COPY_AND_ASSIGN(Layout); |
| 133 }; | 138 }; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 151 typedef std::deque<Balloon*> Balloons; | 156 typedef std::deque<Balloon*> Balloons; |
| 152 Balloons balloons_; | 157 Balloons balloons_; |
| 153 | 158 |
| 154 // The layout parameters for balloons in this collection. | 159 // The layout parameters for balloons in this collection. |
| 155 Layout layout_; | 160 Layout layout_; |
| 156 | 161 |
| 157 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); | 162 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); |
| 158 }; | 163 }; |
| 159 | 164 |
| 160 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 165 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
| OLD | NEW |