| OLD | NEW |
| 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_ |
| OLD | NEW |