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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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/common/system/system_notifier.cc ('k') | ash/common/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
6 #define ASH_COMMON_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/common/login_status.h"
10 #include "base/macros.h"
11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/view.h"
13
14 namespace views {
15 class CustomButton;
16 }
17
18 namespace ash {
19 class SystemTrayItem;
20
21 // The container view for the tiles in the bottom row of the system menu
22 // (settings, help, lock, and power).
23 class ASH_EXPORT TilesDefaultView : public views::View,
24 public views::ButtonListener {
25 public:
26 TilesDefaultView(SystemTrayItem* owner, LoginStatus login);
27 ~TilesDefaultView() override;
28
29 // Sets the layout manager and child views of |this|.
30 // TODO(tdanderson|bruthig): Consider moving the layout manager
31 // setup code to a location which can be shared by other system menu rows.
32 void Init();
33
34 // views::ButtonListener:
35 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
36
37 // Accessor needed to obtain the help button view for the first-run flow.
38 views::View* GetHelpButtonView() const;
39
40 const views::CustomButton* GetShutdownButtonViewForTest() const;
41
42 private:
43 friend class TrayTilesTest;
44
45 SystemTrayItem* owner_;
46 LoginStatus login_;
47
48 // Pointers to the child buttons of |this|. Note that some buttons may not
49 // exist (depending on the user's current login status, for instance), in
50 // which case the corresponding pointer will be null.
51 views::CustomButton* settings_button_;
52 views::CustomButton* help_button_;
53 views::CustomButton* lock_button_;
54 views::CustomButton* power_button_;
55
56 DISALLOW_COPY_AND_ASSIGN(TilesDefaultView);
57 };
58
59 } // namespace ash
60
61 #endif // ASH_COMMON_SYSTEM_TILES_TILES_DEFAULT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/common/system/system_notifier.cc ('k') | ash/common/system/tiles/tiles_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698