| 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/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/chromeos/notifications/balloon_view.h" | 10 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
| 11 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 11 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
| 12 #include "chrome/browser/notifications/balloon.h" | 12 #include "chrome/browser/notifications/balloon.h" |
| 13 #include "chrome/browser/notifications/notification.h" | 13 #include "chrome/browser/notifications/notification.h" |
| 14 #include "chrome/browser/ui/browser_list.h" | 14 #include "chrome/browser/ui/browser_list.h" |
| 15 #include "chrome/browser/ui/window_sizer.h" | |
| 16 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
| 18 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 19 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 // Margin from the edge of the work area | 22 // Margin from the edge of the work area |
| 24 const int kVerticalEdgeMargin = 5; | 23 const int kVerticalEdgeMargin = 5; |
| 25 const int kHorizontalEdgeMargin = 5; | 24 const int kHorizontalEdgeMargin = 5; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false)); | 173 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false)); |
| 175 return new_balloon; | 174 return new_balloon; |
| 176 } | 175 } |
| 177 | 176 |
| 178 } // namespace chromeos | 177 } // namespace chromeos |
| 179 | 178 |
| 180 // static | 179 // static |
| 181 BalloonCollection* BalloonCollection::Create() { | 180 BalloonCollection* BalloonCollection::Create() { |
| 182 return new chromeos::BalloonCollectionImpl(); | 181 return new chromeos::BalloonCollectionImpl(); |
| 183 } | 182 } |
| OLD | NEW |