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

Side by Side Diff: ash/system/tiles/tiles_default_view.h

Issue 2884323002: Leave ChromeOS system menu open when toggling nightlight. (Closed)
Patch Set: fix messed up include 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 | « no previous file | ash/system/tiles/tiles_default_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SystemTrayItem; 19 class SystemTrayItem;
19 20
20 // 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
21 // (settings, help, lock, and power). 22 // (settings, help, lock, and power).
22 class ASH_EXPORT TilesDefaultView : public views::View, 23 class ASH_EXPORT TilesDefaultView : public views::View,
23 public views::ButtonListener { 24 public views::ButtonListener {
24 public: 25 public:
25 explicit TilesDefaultView(SystemTrayItem* owner); 26 explicit TilesDefaultView(SystemTrayItem* owner);
26 ~TilesDefaultView() override; 27 ~TilesDefaultView() override;
27 28
(...skipping 13 matching lines...) Expand all
41 private: 42 private:
42 friend class TrayTilesTest; 43 friend class TrayTilesTest;
43 44
44 SystemTrayItem* owner_; 45 SystemTrayItem* owner_;
45 46
46 // 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
47 // 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
48 // which case the corresponding pointer will be null. 49 // which case the corresponding pointer will be null.
49 views::CustomButton* settings_button_; 50 views::CustomButton* settings_button_;
50 views::CustomButton* help_button_; 51 views::CustomButton* help_button_;
51 views::CustomButton* night_light_button_; 52 SystemMenuButton* night_light_button_;
52 views::CustomButton* lock_button_; 53 views::CustomButton* lock_button_;
53 views::CustomButton* power_button_; 54 views::CustomButton* power_button_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(TilesDefaultView); 56 DISALLOW_COPY_AND_ASSIGN(TilesDefaultView);
56 }; 57 };
57 58
58 } // namespace ash 59 } // namespace ash
59 60
60 #endif // ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_ 61 #endif // ASH_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/tiles/tiles_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698