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_NIGHT_LIGHT_TOGGLE_BUTTON_H_ | |
| 6 #define ASH_SYSTEM_NIGHT_LIGHT_NIGHT_LIGHT_TOGGLE_BUTTON_H_ | |
| 7 | |
| 8 #include "ash/system/tray/system_menu_button.h" | |
| 9 #include "base/macros.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 | |
| 13 // The NightLight toggle button in the system tray. | |
|
Daniel Erat
2017/05/25 17:59:51
nit: "Night Light" instead throughout? that's how
afakhry
2017/05/25 18:03:31
I've been consistently calling it NightLight in al
| |
| 14 class NightLightToggleButton : public SystemMenuButton { | |
| 15 public: | |
| 16 explicit NightLightToggleButton(views::ButtonListener* listener); | |
| 17 ~NightLightToggleButton() override = default; | |
| 18 | |
| 19 // Updates the icon and its style based on the status of NightLight. | |
| 20 void Update(); | |
| 21 | |
| 22 private: | |
| 23 // views::View: | |
| 24 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(NightLightToggleButton); | |
| 27 }; | |
| 28 | |
| 29 } // namespace ash | |
| 30 | |
| 31 #endif // ASH_SYSTEM_NIGHT_LIGHT_NIGHT_LIGHT_TOGGLE_BUTTON_H_ | |
| OLD | NEW |