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 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 5 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 user::LoginStatus login_status() const { return login_status_; } | 60 user::LoginStatus login_status() const { return login_status_; } |
61 | 61 |
62 // Returns true if the shelf should be visible. This is used when the | 62 // Returns true if the shelf should be visible. This is used when the |
63 // shelf is configured to auto-hide and test if the shelf should force | 63 // shelf is configured to auto-hide and test if the shelf should force |
64 // the shelf to remain visible. | 64 // the shelf to remain visible. |
65 bool ShouldShowShelf() const; | 65 bool ShouldShowShelf() const; |
66 | 66 |
67 // True if any message bubble is shown. | 67 // True if any message bubble is shown. |
68 bool IsMessageBubbleShown() const; | 68 bool IsMessageBubbleShown() const; |
69 | 69 |
| 70 // Notifies child trays to schedule a paint, updating their visuals for the |
| 71 // new shelf dim level. |
| 72 void ShelfDimChanged(); |
| 73 |
70 // Overridden from views::Widget: | 74 // Overridden from views::Widget: |
71 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 75 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
72 | 76 |
73 private: | 77 private: |
74 void AddSystemTray(); | 78 void AddSystemTray(); |
75 void AddWebNotificationTray(); | 79 void AddWebNotificationTray(); |
76 #if defined(OS_CHROMEOS) | 80 #if defined(OS_CHROMEOS) |
77 void AddLogoutButtonTray(); | 81 void AddLogoutButtonTray(); |
78 void AddVirtualKeyboardTray(); | 82 void AddVirtualKeyboardTray(); |
79 #endif | 83 #endif |
80 void AddOverviewButtonTray(); | 84 void AddOverviewButtonTray(); |
81 | 85 |
82 // Weak pointers to View classes that are parented to StatusAreaWidget: | 86 // Weak pointers to View classes that are parented to StatusAreaWidget: |
83 StatusAreaWidgetDelegate* status_area_widget_delegate_; | 87 StatusAreaWidgetDelegate* status_area_widget_delegate_; |
84 OverviewButtonTray* overview_button_tray_; | 88 OverviewButtonTray* overview_button_tray_; |
85 SystemTray* system_tray_; | 89 SystemTray* system_tray_; |
86 WebNotificationTray* web_notification_tray_; | 90 WebNotificationTray* web_notification_tray_; |
87 #if defined(OS_CHROMEOS) | 91 #if defined(OS_CHROMEOS) |
88 LogoutButtonTray* logout_button_tray_; | 92 LogoutButtonTray* logout_button_tray_; |
89 VirtualKeyboardTray* virtual_keyboard_tray_; | 93 VirtualKeyboardTray* virtual_keyboard_tray_; |
90 #endif | 94 #endif |
91 user::LoginStatus login_status_; | 95 user::LoginStatus login_status_; |
92 | 96 |
93 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); | 97 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); |
94 }; | 98 }; |
95 | 99 |
96 } // namespace ash | 100 } // namespace ash |
97 | 101 |
98 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 102 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
OLD | NEW |