| OLD | NEW |
| (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_TRAY_TILES_H_ | |
| 6 #define ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "ash/common/system/tray/system_tray_item.h" | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 class SystemTray; | |
| 14 class TilesDefaultView; | |
| 15 | |
| 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 | |
| 18 // require its own dedicated row in the system menu. | |
| 19 class ASH_EXPORT TrayTiles : public SystemTrayItem { | |
| 20 public: | |
| 21 explicit TrayTiles(SystemTray* system_tray); | |
| 22 ~TrayTiles() override; | |
| 23 | |
| 24 // Accessor needed to obtain the help button view for the first-run flow. | |
| 25 views::View* GetHelpButtonView() const; | |
| 26 | |
| 27 TilesDefaultView* GetDefaultViewForTesting() const; | |
| 28 views::View* CreateDefaultViewForTesting(LoginStatus status); | |
| 29 | |
| 30 private: | |
| 31 friend class TrayTilesTest; | |
| 32 | |
| 33 // SystemTrayItem: | |
| 34 views::View* CreateDefaultView(LoginStatus status) override; | |
| 35 void DestroyDefaultView() override; | |
| 36 | |
| 37 TilesDefaultView* default_view_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(TrayTiles); | |
| 40 }; | |
| 41 | |
| 42 } // namespace ash | |
| 43 | |
| 44 #endif // ASH_COMMON_SYSTEM_TILES_TRAY_TILES_H_ | |
| OLD | NEW |