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 // Draws the view for the balloons. | 5 // Draws the view for the balloons. |
6 | 6 |
7 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 7 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "chrome/browser/chromeos/notifications/balloon_view.h" | 11 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
| 12 #include "gfx/canvas.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/background.h" | 14 #include "views/background.h" |
15 #include "views/controls/scroll_view.h" | 15 #include "views/controls/scroll_view.h" |
16 #include "views/widget/root_view.h" | 16 #include "views/widget/root_view.h" |
17 #include "views/widget/widget_gtk.h" | 17 #include "views/widget/widget_gtk.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 // Minimum and maximum size of balloon content. | 20 // Minimum and maximum size of balloon content. |
21 const int kBalloonMinWidth = 300; | 21 const int kBalloonMinWidth = 300; |
22 const int kBalloonMaxWidth = 300; | 22 const int kBalloonMaxWidth = 300; |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 int NotificationPanelTester::GetStickyNotificationCount() const { | 555 int NotificationPanelTester::GetStickyNotificationCount() const { |
556 return panel_->balloon_container_->GetStickyNotificationCount(); | 556 return panel_->balloon_container_->GetStickyNotificationCount(); |
557 } | 557 } |
558 | 558 |
559 int NotificationPanelTester::GetNewNotificationCount() const { | 559 int NotificationPanelTester::GetNewNotificationCount() const { |
560 return panel_->balloon_container_->GetNewNotificationCount(); | 560 return panel_->balloon_container_->GetNewNotificationCount(); |
561 } | 561 } |
562 | 562 |
563 | 563 |
564 } // namespace chromeos | 564 } // namespace chromeos |
OLD | NEW |