| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SYSTEM_TRAY_UPDATE_H_ | |
| 6 #define ASH_SYSTEM_TRAY_UPDATE_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "ash/common/system/tray/tray_image_item.h" | |
| 10 #include "ash/common/system/update/update_observer.h" | |
| 11 #include "base/macros.h" | |
| 12 | |
| 13 namespace views { | |
| 14 class View; | |
| 15 } | |
| 16 | |
| 17 namespace ash { | |
| 18 | |
| 19 // The system update tray item. Exported for test. | |
| 20 class ASH_EXPORT TrayUpdate : public TrayImageItem, public UpdateObserver { | |
| 21 public: | |
| 22 explicit TrayUpdate(SystemTray* system_tray); | |
| 23 ~TrayUpdate() override; | |
| 24 | |
| 25 private: | |
| 26 // Overridden from TrayImageItem. | |
| 27 bool GetInitialVisibility() override; | |
| 28 views::View* CreateDefaultView(LoginStatus status) override; | |
| 29 | |
| 30 // Overridden from UpdateObserver. | |
| 31 void OnUpdateRecommended(const UpdateInfo& info) override; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(TrayUpdate); | |
| 34 }; | |
| 35 | |
| 36 } // namespace ash | |
| 37 | |
| 38 #endif // ASH_SYSTEM_TRAY_UPDATE_H_ | |
| OLD | NEW |