| 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_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H |
| 6 #define ASH_SYSTEM_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H | 6 #define ASH_SYSTEM_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
| 10 #include "ash/system/tray/view_click_listener.h" | 10 #include "ash/system/tray/view_click_listener.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 class LabelTrayView; |
| 14 class SystemTray; | 15 class SystemTray; |
| 15 | 16 |
| 16 namespace internal { | |
| 17 | |
| 18 class LabelTrayView; | |
| 19 | |
| 20 class ASH_EXPORT TrayLocallyManagedUser : public SystemTrayItem, | 17 class ASH_EXPORT TrayLocallyManagedUser : public SystemTrayItem, |
| 21 public ViewClickListener { | 18 public ViewClickListener { |
| 22 public: | 19 public: |
| 23 explicit TrayLocallyManagedUser(SystemTray* system_tray); | 20 explicit TrayLocallyManagedUser(SystemTray* system_tray); |
| 24 virtual ~TrayLocallyManagedUser(); | 21 virtual ~TrayLocallyManagedUser(); |
| 25 | 22 |
| 26 // If message is not empty updates content of default view, otherwise hides | 23 // If message is not empty updates content of default view, otherwise hides |
| 27 // tray items. | 24 // tray items. |
| 28 void UpdateMessage(); | 25 void UpdateMessage(); |
| 29 | 26 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 | 39 |
| 43 void CreateOrUpdateNotification(const base::string16& new_message); | 40 void CreateOrUpdateNotification(const base::string16& new_message); |
| 44 | 41 |
| 45 LabelTrayView* tray_view_; | 42 LabelTrayView* tray_view_; |
| 46 // Previous login status to avoid showing notification upon unlock. | 43 // Previous login status to avoid showing notification upon unlock. |
| 47 user::LoginStatus status_; | 44 user::LoginStatus status_; |
| 48 | 45 |
| 49 DISALLOW_COPY_AND_ASSIGN(TrayLocallyManagedUser); | 46 DISALLOW_COPY_AND_ASSIGN(TrayLocallyManagedUser); |
| 50 }; | 47 }; |
| 51 | 48 |
| 52 } // namespace internal | |
| 53 } // namespace ash | 49 } // namespace ash |
| 54 | 50 |
| 55 #endif // ASH_SYSTEM_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H | 51 #endif // ASH_SYSTEM_CHROMEOS_LOCALLY_MANAGED_TRAY_LOCALLY_MANAGED_USER_H |
| OLD | NEW |