| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/observer_list.h" |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 struct UpdateInfo; |
| 15 class UpdateObserver; |
| 16 |
| 17 // Observer and notification manager for the ash system tray. This version |
| 18 // contains the observers that have been ported to //ash/common. See also |
| 19 // ash::SystemTrayNotifier. |
| 20 // TODO(jamescook): After all the observers have been moved, rename this class |
| 21 // to SystemTrayNotifier. |
| 22 class ASH_EXPORT WmSystemTrayNotifier { |
| 23 public: |
| 24 WmSystemTrayNotifier(); |
| 25 ~WmSystemTrayNotifier(); |
| 26 |
| 27 void AddUpdateObserver(UpdateObserver* observer); |
| 28 void RemoveUpdateObserver(UpdateObserver* observer); |
| 29 |
| 30 void NotifyUpdateRecommended(const UpdateInfo& info); |
| 31 |
| 32 private: |
| 33 base::ObserverList<UpdateObserver> update_observers_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(WmSystemTrayNotifier); |
| 36 }; |
| 37 |
| 38 } // namespace ash |
| 39 |
| 40 #endif // ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_ |
| OLD | NEW |