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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // True if any message bubble is shown. | 82 // True if any message bubble is shown. |
83 bool IsMessageBubbleShown() const; | 83 bool IsMessageBubbleShown() const; |
84 | 84 |
85 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a | 85 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a |
86 // paint. | 86 // paint. |
87 void SchedulePaint(); | 87 void SchedulePaint(); |
88 | 88 |
89 // Overridden from views::Widget: | 89 // Overridden from views::Widget: |
90 const ui::NativeTheme* GetNativeTheme() const override; | 90 const ui::NativeTheme* GetNativeTheme() const override; |
91 void OnNativeWidgetActivationChanged(bool active) override; | 91 void OnNativeWidgetActivationChanged(bool active) override; |
| 92 void OnKeyEvent(ui::KeyEvent* event) override; |
92 | 93 |
93 // ShelfBackgroundAnimatorObserver: | 94 // ShelfBackgroundAnimatorObserver: |
94 void UpdateShelfItemBackground(int alpha) override; | 95 void UpdateShelfItemBackground(int alpha) override; |
95 | 96 |
96 private: | 97 private: |
97 void AddSystemTray(); | 98 void AddSystemTray(); |
98 void AddWebNotificationTray(); | 99 void AddWebNotificationTray(); |
99 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
100 void AddLogoutButtonTray(); | 101 void AddLogoutButtonTray(); |
101 void AddPaletteTray(); | 102 void AddPaletteTray(); |
(...skipping 20 matching lines...) Expand all Loading... |
122 LoginStatus login_status_; | 123 LoginStatus login_status_; |
123 | 124 |
124 WmShelf* wm_shelf_; | 125 WmShelf* wm_shelf_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); | 127 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace ash | 130 } // namespace ash |
130 | 131 |
131 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ | 132 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ |
OLD | NEW |