OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 #include "ash/system/tray/system_tray_notifier.h" | 10 #include "ash/system/tray/system_tray_notifier.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void CreateOrUpdateNotification() = 0; | 116 virtual void CreateOrUpdateNotification() = 0; |
117 | 117 |
118 // Returns the id of the notification for the tray item. | 118 // Returns the id of the notification for the tray item. |
119 virtual std::string GetNotificationId() = 0; | 119 virtual std::string GetNotificationId() = 0; |
120 | 120 |
121 // Overridden from SystemTrayItem. | 121 // Overridden from SystemTrayItem. |
122 views::View* CreateTrayView(user::LoginStatus status) override = 0; | 122 views::View* CreateTrayView(user::LoginStatus status) override = 0; |
123 views::View* CreateDefaultView(user::LoginStatus status) override = 0; | 123 views::View* CreateDefaultView(user::LoginStatus status) override = 0; |
124 void DestroyTrayView() override; | 124 void DestroyTrayView() override; |
125 void DestroyDefaultView() override; | 125 void DestroyDefaultView() override; |
126 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; | 126 void UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) override; |
127 | 127 |
128 private: | 128 private: |
129 tray::ScreenTrayView* tray_view_; | 129 tray::ScreenTrayView* tray_view_; |
130 tray::ScreenStatusView* default_view_; | 130 tray::ScreenStatusView* default_view_; |
131 bool is_started_; | 131 bool is_started_; |
132 base::Closure stop_callback_; | 132 base::Closure stop_callback_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); | 134 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace ash | 137 } // namespace ash |
138 | 138 |
139 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 139 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
OLD | NEW |