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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 if (balloon_container_->GetStickyNotificationCount() > 0) { | 546 if (balloon_container_->GetStickyNotificationCount() > 0) { |
547 state_ = STICKY_AND_NEW; | 547 state_ = STICKY_AND_NEW; |
548 } else { | 548 } else { |
549 state_ = MINIMIZED; | 549 state_ = MINIMIZED; |
550 } | 550 } |
551 UpdatePanel(false); | 551 UpdatePanel(false); |
552 } | 552 } |
553 } | 553 } |
554 | 554 |
555 } // namespace chromeos | 555 } // namespace chromeos |
OLD | NEW |