OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_NIGHT_LIGHT_TRAY_NIGHT_LIGHT_H_ |
| 6 #define ASH_SYSTEM_NIGHT_LIGHT_TRAY_NIGHT_LIGHT_H_ |
| 7 |
| 8 #include "ash/system/night_light/night_light_controller.h" |
| 9 #include "ash/system/tray/tray_image_item.h" |
| 10 #include "base/macros.h" |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 // Shows the NightLight icon in the system tray whenever NightLight is enabled |
| 15 // and active. |
| 16 class TrayNightLight : public TrayImageItem, |
| 17 public NightLightController::Observer { |
| 18 public: |
| 19 explicit TrayNightLight(SystemTray* system_tray); |
| 20 ~TrayNightLight() override; |
| 21 |
| 22 // ash::NightLightController::Observer: |
| 23 void OnNightLightEnabledChanged(bool enabled) override; |
| 24 |
| 25 // ash::TrayImageItem: |
| 26 bool GetInitialVisibility() override; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(TrayNightLight); |
| 30 }; |
| 31 |
| 32 } // namespace ash |
| 33 |
| 34 #endif // ASH_SYSTEM_NIGHT_LIGHT_TRAY_NIGHT_LIGHT_H_ |
OLD | NEW |