Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: ash/system/night_light/night_light_toggle_button.h

Issue 2907503002: Use correct theme for the off icon of NightLight, fix tooltip and a11y (Closed)
Patch Set: Expose button for tests. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/night_light/night_light_toggle_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/night_light/night_light_toggle_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698