| OLD | NEW |
| 1 // Copyright (c) 2011 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 "gfx/size.h" | 8 #include "ui/gfx/size.h" |
| 9 | 9 |
| 10 #if defined(TOOLKIT_VIEWS) | 10 #if defined(TOOLKIT_VIEWS) |
| 11 #include "chrome/browser/ui/views/notifications/balloon_view.h" | 11 #include "chrome/browser/ui/views/notifications/balloon_view.h" |
| 12 #else | 12 #else |
| 13 #include "chrome/browser/ui/gtk/notifications/balloon_view_gtk.h" | 13 #include "chrome/browser/ui/gtk/notifications/balloon_view_gtk.h" |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, | 16 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, |
| 17 Profile* profile) { | 17 Profile* profile) { |
| 18 Balloon* balloon = new Balloon(notification, profile, this); | 18 Balloon* balloon = new Balloon(notification, profile, this); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 else | 78 else |
| 79 NOTREACHED(); | 79 NOTREACHED(); |
| 80 | 80 |
| 81 PositionBalloons(true); | 81 PositionBalloons(true); |
| 82 } | 82 } |
| 83 | 83 |
| 84 // static | 84 // static |
| 85 BalloonCollection* BalloonCollection::Create() { | 85 BalloonCollection* BalloonCollection::Create() { |
| 86 return new BalloonCollectionImpl(); | 86 return new BalloonCollectionImpl(); |
| 87 } | 87 } |
| OLD | NEW |