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

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

Issue 2429923002: Implement all system menu title row buttons for Ash MD (Closed)
Patch Set: OS_WIN define in tests Created 4 years, 2 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/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 // SystemTrayItem: 24 // SystemTrayItem:
25 views::View* CreateDefaultView(LoginStatus status) override; 25 views::View* CreateDefaultView(LoginStatus status) override;
26 void DestroyDefaultView() override; 26 void DestroyDefaultView() override;
27 27
28 private: 28 private:
29 friend class TrayTilesTest;
30
29 TilesDefaultView* default_view_; 31 TilesDefaultView* default_view_;
30 32
31 DISALLOW_COPY_AND_ASSIGN(TrayTiles); 33 DISALLOW_COPY_AND_ASSIGN(TrayTiles);
32 }; 34 };
33 35
34 } // namespace ash 36 } // namespace ash
35 37
36 #endif // ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_ 38 #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