Chromium Code Reviews| 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 | |
| 11 namespace ash { | |
| 12 | |
| 13 // Shows the NightLight icon in the system tray whenever NightLight is enabled | |
| 14 // and active. | |
|
James Cook
2017/05/05 17:12:32
Thanks for adding a class comment.
afakhry
2017/05/05 20:04:11
Acknowledged.
| |
| 15 class TrayNightLight : public TrayImageItem, | |
| 16 public NightLightController::Observer { | |
| 17 public: | |
| 18 TrayNightLight(SystemTray* system_tray); | |
|
James Cook
2017/05/05 17:12:32
nit: explicit
afakhry
2017/05/05 20:04:11
I'm surprised the linter didn't catch that. Done.
| |
| 19 ~TrayNightLight() override; | |
| 20 | |
| 21 // ash::NightLightController::Observer: | |
| 22 void OnStatusChanged(bool new_status) override; | |
| 23 | |
| 24 // ash::TrayImageItem: | |
| 25 bool GetInitialVisibility() override; | |
| 26 | |
| 27 private: | |
| 28 DISALLOW_COPY_AND_ASSIGN(TrayNightLight); | |
|
James Cook
2017/05/05 17:12:32
#include macros.h
afakhry
2017/05/05 20:04:11
Done.
| |
| 29 }; | |
| 30 | |
| 31 } // namespace ash | |
| 32 | |
| 33 #endif // ASH_SYSTEM_NIGHT_LIGHT_TRAY_NIGHT_LIGHT_H_ | |
| OLD | NEW |