| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_impl.h" | 5 #include "chrome/browser/notifications/balloon_collection_impl.h" |
| 6 | 6 |
| 7 #include "chrome/browser/notifications/balloon.h" | 7 #include "chrome/browser/notifications/balloon.h" |
| 8 #include "chrome/browser/views/notifications/balloon_view.h" | 8 #include "chrome/browser/ui/views/notifications/balloon_view.h" |
| 9 #include "gfx/size.h" | 9 #include "gfx/size.h" |
| 10 | 10 |
| 11 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, | 11 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, |
| 12 Profile* profile) { | 12 Profile* profile) { |
| 13 Balloon* balloon = new Balloon(notification, profile, this); | 13 Balloon* balloon = new Balloon(notification, profile, this); |
| 14 | 14 |
| 15 balloon->set_view(new BalloonViewImpl(this)); | 15 balloon->set_view(new BalloonViewImpl(this)); |
| 16 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height()); | 16 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height()); |
| 17 balloon->set_content_size(size); | 17 balloon->set_content_size(size); |
| 18 return balloon; | 18 return balloon; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 else | 73 else |
| 74 NOTREACHED(); | 74 NOTREACHED(); |
| 75 | 75 |
| 76 PositionBalloons(true); | 76 PositionBalloons(true); |
| 77 } | 77 } |
| 78 | 78 |
| 79 // static | 79 // static |
| 80 BalloonCollection* BalloonCollection::Create() { | 80 BalloonCollection* BalloonCollection::Create() { |
| 81 return new BalloonCollectionImpl(); | 81 return new BalloonCollectionImpl(); |
| 82 } | 82 } |
| OLD | NEW |