OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/notifications/balloon_collection.h" | 5 #include "chrome/browser/notifications/balloon_collection.h" |
6 #include "chrome/browser/cocoa/notifications/balloon_view_bridge.h" | 6 #include "chrome/browser/cocoa/notifications/balloon_view_bridge.h" |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, | 10 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, |
11 Profile* profile) { | 11 Profile* profile) { |
12 Balloon* balloon = new Balloon(notification, profile, this); | 12 Balloon* balloon = new Balloon(notification, profile, this); |
13 balloon->set_view(new BalloonViewBridge()); | 13 balloon->set_view(new BalloonViewBridge()); |
14 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height()); | 14 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height()); |
15 balloon->set_content_size(size); | 15 balloon->set_content_size(size); |
16 return balloon; | 16 return balloon; |
17 } | 17 } |
18 | 18 |
| 19 int BalloonCollectionImpl::Layout::InterBalloonMargin() const { |
| 20 return 5; |
| 21 } |
| 22 |
| 23 int BalloonCollectionImpl::Layout::HorizontalEdgeMargin() const { |
| 24 return 5; |
| 25 } |
| 26 |
| 27 int BalloonCollectionImpl::Layout::VerticalEdgeMargin() const { |
| 28 return 18; |
| 29 } |
OLD | NEW |