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

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

Issue 2857103007: [Night Light] CL2: Ash and system tray work (Closed)
Patch Set: Update comment 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
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_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_
OLDNEW
« no previous file with comments | « ash/system/night_light/night_light_controller_unittest.cc ('k') | ash/system/night_light/tray_night_light.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698