| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |
| 6 #define ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 #include "ash/system/tray/tray_image_item.h" |
| 12 #include "base/macros.h" |
| 13 |
| 14 namespace ash { |
| 15 namespace tray { |
| 16 class ScaleView; |
| 17 class ScaleDetailedView; |
| 18 } // namespace tray |
| 19 |
| 20 // The system tray item for display scale. |
| 21 class ASH_EXPORT TrayScale : public SystemTrayItem { |
| 22 public: |
| 23 explicit TrayScale(SystemTray* system_tray); |
| 24 ~TrayScale() override; |
| 25 |
| 26 private: |
| 27 // Overridden from SystemTrayItem. |
| 28 views::View* CreateDefaultView(LoginStatus status) override; |
| 29 views::View* CreateDetailedView(LoginStatus status) override; |
| 30 void DestroyDefaultView() override; |
| 31 void DestroyDetailedView() override; |
| 32 bool ShouldShowShelf() const override; |
| 33 |
| 34 tray::ScaleView* scale_view_; |
| 35 |
| 36 tray::ScaleDetailedView* scale_detail_view_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(TrayScale); |
| 39 }; |
| 40 |
| 41 } // namespace ash |
| 42 |
| 43 #endif // ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |
| OLD | NEW |