OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chromeos/notifications/balloon_collection_impl.h" | 5 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
11 #include "chrome/browser/chromeos/notifications/balloon_view.h" | 11 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
12 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 12 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
13 #include "chrome/browser/notifications/balloon.h" | 13 #include "chrome/browser/notifications/balloon.h" |
14 #include "chrome/browser/notifications/notification.h" | 14 #include "chrome/browser/notifications/notification.h" |
15 #include "chrome/browser/window_sizer.h" | 15 #include "chrome/browser/ui/window_sizer.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
17 #include "gfx/rect.h" | 17 #include "gfx/rect.h" |
18 #include "gfx/size.h" | 18 #include "gfx/size.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Margin from the edge of the work area | 22 // Margin from the edge of the work area |
23 const int kVerticalEdgeMargin = 5; | 23 const int kVerticalEdgeMargin = 5; |
24 const int kHorizontalEdgeMargin = 5; | 24 const int kHorizontalEdgeMargin = 5; |
25 | 25 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false)); | 160 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false)); |
161 return new_balloon; | 161 return new_balloon; |
162 } | 162 } |
163 | 163 |
164 } // namespace chromeos | 164 } // namespace chromeos |
165 | 165 |
166 // static | 166 // static |
167 BalloonCollection* BalloonCollection::Create() { | 167 BalloonCollection* BalloonCollection::Create() { |
168 return new chromeos::BalloonCollectionImpl(); | 168 return new chromeos::BalloonCollectionImpl(); |
169 } | 169 } |
OLD | NEW |