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