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_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ | 5 #ifndef ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ |
6 #define ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ | 6 #define ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/login_status.h" | 9 #include "ash/common/login_status.h" |
10 #include "ash/common/shelf/shelf_background_animator_observer.h" | 10 #include "ash/common/shelf/shelf_background_animator_observer.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 bool ShouldShowShelf() const; | 71 bool ShouldShowShelf() const; |
72 | 72 |
73 // True if any message bubble is shown. | 73 // True if any message bubble is shown. |
74 bool IsMessageBubbleShown() const; | 74 bool IsMessageBubbleShown() const; |
75 | 75 |
76 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a | 76 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a |
77 // paint. | 77 // paint. |
78 void SchedulePaint(); | 78 void SchedulePaint(); |
79 | 79 |
80 // Overridden from views::Widget: | 80 // Overridden from views::Widget: |
| 81 const ui::NativeTheme* GetNativeTheme() const override; |
81 void OnNativeWidgetActivationChanged(bool active) override; | 82 void OnNativeWidgetActivationChanged(bool active) override; |
82 | 83 |
83 // ShelfBackgroundAnimatorObserver: | 84 // ShelfBackgroundAnimatorObserver: |
84 void UpdateShelfItemBackground(int alpha) override; | 85 void UpdateShelfItemBackground(int alpha) override; |
85 | 86 |
86 private: | 87 private: |
87 void AddSystemTray(); | 88 void AddSystemTray(); |
88 void AddWebNotificationTray(); | 89 void AddWebNotificationTray(); |
89 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
90 void AddLogoutButtonTray(); | 91 void AddLogoutButtonTray(); |
(...skipping 17 matching lines...) Expand all Loading... |
108 LoginStatus login_status_; | 109 LoginStatus login_status_; |
109 | 110 |
110 WmShelf* wm_shelf_; | 111 WmShelf* wm_shelf_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); | 113 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace ash | 116 } // namespace ash |
116 | 117 |
117 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ | 118 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ |
OLD | NEW |