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

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: Exclude one test from mash 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698