| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/notifications/balloon_view_views.h" | 8 #include "chrome/browser/ui/views/notifications/balloon_view_views.h" |
| 9 #include "ui/base/events/event_constants.h" | 9 #include "ui/base/events/event_constants.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_LEFT); | 100 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_LEFT); |
| 101 else if (position == LOWER_RIGHT) | 101 else if (position == LOWER_RIGHT) |
| 102 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_RIGHT); | 102 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_RIGHT); |
| 103 else | 103 else |
| 104 NOTREACHED(); | 104 NOTREACHED(); |
| 105 | 105 |
| 106 layout_.ComputeOffsetToMoveAbovePanels(); | 106 layout_.ComputeOffsetToMoveAbovePanels(); |
| 107 PositionBalloons(true); | 107 PositionBalloons(true); |
| 108 } | 108 } |
| 109 | 109 |
| 110 #if !defined(USE_ASH) | 110 #if !defined(OS_CHROMEOS) |
| 111 // static | 111 // static |
| 112 BalloonCollection* BalloonCollection::Create() { | 112 BalloonCollection* BalloonCollection::Create() { |
| 113 return new BalloonCollectionImpl(); | 113 return new BalloonCollectionImpl(); |
| 114 } | 114 } |
| 115 #endif | 115 #endif |
| OLD | NEW |