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_UPDATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_UPDATE_H_ |
6 #define ASH_SYSTEM_TRAY_UPDATE_H_ | 6 #define ASH_SYSTEM_TRAY_UPDATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 class TrayUpdate : public TrayImageItem, | 25 class TrayUpdate : public TrayImageItem, |
26 public UpdateObserver { | 26 public UpdateObserver { |
27 public: | 27 public: |
28 explicit TrayUpdate(SystemTray* system_tray); | 28 explicit TrayUpdate(SystemTray* system_tray); |
29 ~TrayUpdate() override; | 29 ~TrayUpdate() override; |
30 | 30 |
31 private: | 31 private: |
32 // Overridden from TrayImageItem. | 32 // Overridden from TrayImageItem. |
33 bool GetInitialVisibility() override; | 33 bool GetInitialVisibility() override; |
34 views::View* CreateDefaultView(user::LoginStatus status) override; | 34 views::View* CreateDefaultView(LoginStatus status) override; |
35 views::View* CreateDetailedView(user::LoginStatus status) override; | 35 views::View* CreateDetailedView(LoginStatus status) override; |
36 void DestroyDetailedView() override; | 36 void DestroyDetailedView() override; |
37 | 37 |
38 // Overridden from UpdateObserver. | 38 // Overridden from UpdateObserver. |
39 void OnUpdateRecommended(const UpdateInfo& info) override; | 39 void OnUpdateRecommended(const UpdateInfo& info) override; |
40 | 40 |
41 // Used to nag the user in case the tray has been hidden too long with an | 41 // Used to nag the user in case the tray has been hidden too long with an |
42 // unseen update notification. | 42 // unseen update notification. |
43 std::unique_ptr<tray::UpdateNagger> nagger_; | 43 std::unique_ptr<tray::UpdateNagger> nagger_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(TrayUpdate); | 45 DISALLOW_COPY_AND_ASSIGN(TrayUpdate); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace ash | 48 } // namespace ash |
49 | 49 |
50 #endif // ASH_SYSTEM_TRAY_UPDATE_H_ | 50 #endif // ASH_SYSTEM_TRAY_UPDATE_H_ |
OLD | NEW |