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 "ash/system/web_notification/web_notification_tray.h" | 5 #include "ash/system/web_notification/web_notification_tray.h" |
6 | 6 |
7 #include "ash/system/status_area_widget.h" | 7 #include "ash/system/status_area_widget.h" |
8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
9 #include "ash/system/tray/tray_bubble_view.h" | 9 #include "ash/system/tray/tray_bubble_view.h" |
10 #include "ash/system/tray/tray_constants.h" | 10 #include "ash/system/tray/tray_constants.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 namespace { | 36 namespace { |
37 | 37 |
38 // Tray constants | 38 // Tray constants |
39 const int kTrayContainerVeritcalPaddingBottomAlignment = 3; | 39 const int kTrayContainerVeritcalPaddingBottomAlignment = 3; |
40 const int kTrayContainerHorizontalPaddingBottomAlignment = 1; | 40 const int kTrayContainerHorizontalPaddingBottomAlignment = 1; |
41 const int kTrayContainerVerticalPaddingVerticalAlignment = 1; | 41 const int kTrayContainerVerticalPaddingVerticalAlignment = 1; |
42 const int kTrayContainerHorizontalPaddingVerticalAlignment = 0; | 42 const int kTrayContainerHorizontalPaddingVerticalAlignment = 0; |
43 const int kPaddingFromLeftEdgeOfSystemTrayBottomAlignment = 8; | 43 const int kPaddingFromLeftEdgeOfSystemTrayBottomAlignment = 8; |
44 const int kPaddingFromTopEdgeOfSystemTrayVerticalAlignment = 10; | 44 const int kPaddingFromTopEdgeOfSystemTrayVerticalAlignment = 10; |
45 const int kTrayWidth = 40; | 45 const int kTrayWidth = 40; |
46 const int kTrayHeight = 32; | 46 const int kTrayHeight = 31; |
47 const int kTraySideWidth = 32; | 47 const int kTraySideWidth = 32; |
48 const int kTraySideHeight = 24; | 48 const int kTraySideHeight = 24; |
49 | 49 |
50 // Web Notification Bubble constants | 50 // Web Notification Bubble constants |
51 const int kWebNotificationBubbleMinHeight = 80; | 51 const int kWebNotificationBubbleMinHeight = 80; |
52 const int kWebNotificationBubbleMaxHeight = 480; | 52 const int kWebNotificationBubbleMaxHeight = 480; |
53 // Delay laying out the Bubble until all notifications have been added and icons | 53 // Delay laying out the Bubble until all notifications have been added and icons |
54 // have had a chance to load. | 54 // have had a chance to load. |
55 const int kUpdateDelayMs = 50; | 55 const int kUpdateDelayMs = 50; |
56 // Limit the number of visible notifications. | 56 // Limit the number of visible notifications. |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 | 1042 |
1043 void WebNotificationTray::HideBubble(Bubble* bubble) { | 1043 void WebNotificationTray::HideBubble(Bubble* bubble) { |
1044 if (bubble == message_center_bubble()) { | 1044 if (bubble == message_center_bubble()) { |
1045 HideMessageCenterBubble(); | 1045 HideMessageCenterBubble(); |
1046 } else if (bubble == notification_bubble()) { | 1046 } else if (bubble == notification_bubble()) { |
1047 HideNotificationBubble(); | 1047 HideNotificationBubble(); |
1048 } | 1048 } |
1049 } | 1049 } |
1050 | 1050 |
1051 } // namespace ash | 1051 } // namespace ash |
OLD | NEW |