| 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_TRAY_SYSTEM_TRAY_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class SystemBubbleWrapper; | 24 class SystemBubbleWrapper; |
| 25 class SystemTrayDelegate; | 25 class SystemTrayDelegate; |
| 26 class SystemTrayItem; | 26 class SystemTrayItem; |
| 27 class TrayAccessibility; | 27 class TrayAccessibility; |
| 28 class TrayAudio; | 28 class TrayAudio; |
| 29 class TrayCast; | 29 class TrayCast; |
| 30 class TrayEnterprise; | 30 class TrayEnterprise; |
| 31 class TrayNetwork; | 31 class TrayNetwork; |
| 32 class TrayNightLight; | 32 class TrayNightLight; |
| 33 class TrayScale; | 33 class TrayScale; |
| 34 class TraySessionLengthLimit; |
| 34 class TraySupervisedUser; | 35 class TraySupervisedUser; |
| 35 class TraySystemInfo; | 36 class TraySystemInfo; |
| 36 class TrayTiles; | 37 class TrayTiles; |
| 37 class TrayUpdate; | 38 class TrayUpdate; |
| 38 class WebNotificationTray; | 39 class WebNotificationTray; |
| 39 | 40 |
| 40 // There are different methods for creating bubble views. | 41 // There are different methods for creating bubble views. |
| 41 enum BubbleCreationType { | 42 enum BubbleCreationType { |
| 42 BUBBLE_CREATE_NEW, // Closes any existing bubble and creates a new one. | 43 BUBBLE_CREATE_NEW, // Closes any existing bubble and creates a new one. |
| 43 BUBBLE_USE_EXISTING, // Uses any existing bubble, or creates a new one. | 44 BUBBLE_USE_EXISTING, // Uses any existing bubble, or creates a new one. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 ScreenTrayItem* GetScreenCaptureItem() { return screen_capture_tray_item_; } | 140 ScreenTrayItem* GetScreenCaptureItem() { return screen_capture_tray_item_; } |
| 140 | 141 |
| 141 TrayAccessibility* GetTrayAccessibilityForTest() { | 142 TrayAccessibility* GetTrayAccessibilityForTest() { |
| 142 return tray_accessibility_; | 143 return tray_accessibility_; |
| 143 } | 144 } |
| 144 | 145 |
| 145 // TODO(jamescook): Add a SystemTrayTestApi instead of these methods. | 146 // TODO(jamescook): Add a SystemTrayTestApi instead of these methods. |
| 146 TrayCast* GetTrayCastForTesting() const; | 147 TrayCast* GetTrayCastForTesting() const; |
| 147 TrayEnterprise* GetTrayEnterpriseForTesting() const; | 148 TrayEnterprise* GetTrayEnterpriseForTesting() const; |
| 148 TrayNetwork* GetTrayNetworkForTesting() const; | 149 TrayNetwork* GetTrayNetworkForTesting() const; |
| 150 TraySessionLengthLimit* GetTraySessionLengthLimitForTesting() const; |
| 149 TraySupervisedUser* GetTraySupervisedUserForTesting() const; | 151 TraySupervisedUser* GetTraySupervisedUserForTesting() const; |
| 150 TraySystemInfo* GetTraySystemInfoForTesting() const; | 152 TraySystemInfo* GetTraySystemInfoForTesting() const; |
| 151 TrayTiles* GetTrayTilesForTesting() const; | 153 TrayTiles* GetTrayTilesForTesting() const; |
| 152 | 154 |
| 153 // Activates the system tray bubble. | 155 // Activates the system tray bubble. |
| 154 void ActivateBubble(); | 156 void ActivateBubble(); |
| 155 | 157 |
| 156 private: | 158 private: |
| 157 class ActivationObserver; | 159 class ActivationObserver; |
| 158 | 160 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 bool full_system_tray_menu_ = false; | 227 bool full_system_tray_menu_ = false; |
| 226 | 228 |
| 227 // These objects are not owned by this class. | 229 // These objects are not owned by this class. |
| 228 TrayAccessibility* tray_accessibility_ = nullptr; | 230 TrayAccessibility* tray_accessibility_ = nullptr; |
| 229 TrayAudio* tray_audio_ = nullptr; | 231 TrayAudio* tray_audio_ = nullptr; |
| 230 TrayCast* tray_cast_ = nullptr; | 232 TrayCast* tray_cast_ = nullptr; |
| 231 TrayEnterprise* tray_enterprise_ = nullptr; | 233 TrayEnterprise* tray_enterprise_ = nullptr; |
| 232 TrayNetwork* tray_network_ = nullptr; | 234 TrayNetwork* tray_network_ = nullptr; |
| 233 TrayTiles* tray_tiles_ = nullptr; | 235 TrayTiles* tray_tiles_ = nullptr; |
| 234 TrayScale* tray_scale_ = nullptr; | 236 TrayScale* tray_scale_ = nullptr; |
| 237 TraySessionLengthLimit* tray_session_length_limit_ = nullptr; |
| 235 TraySupervisedUser* tray_supervised_user_ = nullptr; | 238 TraySupervisedUser* tray_supervised_user_ = nullptr; |
| 236 TraySystemInfo* tray_system_info_ = nullptr; | 239 TraySystemInfo* tray_system_info_ = nullptr; |
| 237 TrayUpdate* tray_update_ = nullptr; | 240 TrayUpdate* tray_update_ = nullptr; |
| 238 TrayNightLight* tray_night_light_ = nullptr; | 241 TrayNightLight* tray_night_light_ = nullptr; |
| 239 | 242 |
| 240 // A reference to the Screen share and capture item. | 243 // A reference to the Screen share and capture item. |
| 241 ScreenTrayItem* screen_capture_tray_item_ = nullptr; // not owned | 244 ScreenTrayItem* screen_capture_tray_item_ = nullptr; // not owned |
| 242 ScreenTrayItem* screen_share_tray_item_ = nullptr; // not owned | 245 ScreenTrayItem* screen_share_tray_item_ = nullptr; // not owned |
| 243 | 246 |
| 244 std::unique_ptr<KeyEventWatcher> key_event_watcher_; | 247 std::unique_ptr<KeyEventWatcher> key_event_watcher_; |
| 245 | 248 |
| 246 std::unique_ptr<ActivationObserver> activation_observer_; | 249 std::unique_ptr<ActivationObserver> activation_observer_; |
| 247 | 250 |
| 248 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 251 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
| 249 }; | 252 }; |
| 250 | 253 |
| 251 } // namespace ash | 254 } // namespace ash |
| 252 | 255 |
| 253 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 256 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| OLD | NEW |