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

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

Issue 2497123002: chromeos: Move device shutdown handling out of chrome into ash (Closed)
Patch Set: rebase Created 4 years, 1 month 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/tiles/tiles_default_view.cc ('k') | ash/common/system/tiles/tray_tiles.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_COMMON_SYSTEM_TILES_TRAY_TILES_H_ 5 #ifndef ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_
6 #define ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_ 6 #define ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/system/tray/system_tray_item.h" 9 #include "ash/common/system/tray/system_tray_item.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace ash { 12 namespace ash {
13 class SystemTray; 13 class SystemTray;
14 class TilesDefaultView; 14 class TilesDefaultView;
15 15
16 // The tray item for the 'tiles' at the bottom of the system menu. Each tile is 16 // The tray item for the 'tiles' at the bottom of the system menu. Each tile is
17 // an image button which does not reqire explanatory text, and thus does not 17 // an image button which does not reqire explanatory text, and thus does not
18 // require its own dedicated row in the system menu. 18 // require its own dedicated row in the system menu.
19 class ASH_EXPORT TrayTiles : public SystemTrayItem { 19 class ASH_EXPORT TrayTiles : public SystemTrayItem {
20 public: 20 public:
21 explicit TrayTiles(SystemTray* system_tray); 21 explicit TrayTiles(SystemTray* system_tray);
22 ~TrayTiles() override; 22 ~TrayTiles() override;
23 23
24 // Accessor needed to obtain the help button view for the first-run flow. 24 // Accessor needed to obtain the help button view for the first-run flow.
25 views::View* GetHelpButtonView() const; 25 views::View* GetHelpButtonView() const;
26 26
27 TilesDefaultView* GetDefaultViewForTesting() const;
27 views::View* CreateDefaultViewForTesting(LoginStatus status); 28 views::View* CreateDefaultViewForTesting(LoginStatus status);
28 29
29 private: 30 private:
30 friend class TrayTilesTest; 31 friend class TrayTilesTest;
31 32
32 // SystemTrayItem: 33 // SystemTrayItem:
33 views::View* CreateDefaultView(LoginStatus status) override; 34 views::View* CreateDefaultView(LoginStatus status) override;
34 void DestroyDefaultView() override; 35 void DestroyDefaultView() override;
35 36
36 TilesDefaultView* default_view_; 37 TilesDefaultView* default_view_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(TrayTiles); 39 DISALLOW_COPY_AND_ASSIGN(TrayTiles);
39 }; 40 };
40 41
41 } // namespace ash 42 } // namespace ash
42 43
43 #endif // ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_ 44 #endif // ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_
OLDNEW
« no previous file with comments | « ash/common/system/tiles/tiles_default_view.cc ('k') | ash/common/system/tiles/tray_tiles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698