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

Side by Side Diff: ash/system/tiles/tiles_default_view.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_ 5 #ifndef ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
6 #define ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_ 6 #define ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 class CustomButton; 14 class CustomButton;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 class SystemMenuButton; 18 class NightLightToggleButton;
19 class SystemTrayItem; 19 class SystemTrayItem;
20 20
21 // The container view for the tiles in the bottom row of the system menu 21 // The container view for the tiles in the bottom row of the system menu
22 // (settings, help, lock, and power). 22 // (settings, help, lock, and power).
23 class ASH_EXPORT TilesDefaultView : public views::View, 23 class ASH_EXPORT TilesDefaultView : public views::View,
24 public views::ButtonListener { 24 public views::ButtonListener {
25 public: 25 public:
26 explicit TilesDefaultView(SystemTrayItem* owner); 26 explicit TilesDefaultView(SystemTrayItem* owner);
27 ~TilesDefaultView() override; 27 ~TilesDefaultView() override;
28 28
(...skipping 13 matching lines...) Expand all
42 private: 42 private:
43 friend class TrayTilesTest; 43 friend class TrayTilesTest;
44 44
45 SystemTrayItem* owner_; 45 SystemTrayItem* owner_;
46 46
47 // Pointers to the child buttons of |this|. Note that some buttons may not 47 // Pointers to the child buttons of |this|. Note that some buttons may not
48 // exist (depending on the user's current login status, for instance), in 48 // exist (depending on the user's current login status, for instance), in
49 // which case the corresponding pointer will be null. 49 // which case the corresponding pointer will be null.
50 views::CustomButton* settings_button_; 50 views::CustomButton* settings_button_;
51 views::CustomButton* help_button_; 51 views::CustomButton* help_button_;
52 SystemMenuButton* night_light_button_; 52 NightLightToggleButton* night_light_button_;
53 views::CustomButton* lock_button_; 53 views::CustomButton* lock_button_;
54 views::CustomButton* power_button_; 54 views::CustomButton* power_button_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(TilesDefaultView); 56 DISALLOW_COPY_AND_ASSIGN(TilesDefaultView);
57 }; 57 };
58 58
59 } // namespace ash 59 } // namespace ash
60 60
61 #endif // ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_ 61 #endif // ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698