Chromium Code Reviews| Index: ash/system/display_scale/tray_scale.h |
| diff --git a/ash/system/display_scale/tray_scale.h b/ash/system/display_scale/tray_scale.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2dc857f7f97baf65f466210d3630227861f304c7 |
| --- /dev/null |
| +++ b/ash/system/display_scale/tray_scale.h |
| @@ -0,0 +1,44 @@ |
| + |
|
oshima
2017/05/06 19:50:22
ditto
malaykeshav
2017/05/08 19:18:06
Done
|
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |
| +#define ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |
| + |
| +#include <stdint.h> |
| + |
| +#include "ash/ash_export.h" |
| +#include "ash/system/tray/tray_image_item.h" |
| +#include "base/macros.h" |
| + |
| +namespace ash { |
| +namespace tray { |
| +class ScaleView; |
| +class ScaleDetailedView; |
| +} |
|
oshima
2017/05/06 19:50:22
// tray
and space
malaykeshav
2017/05/08 19:18:06
Done
"space"?
|
| + |
| +// The system tray item for display scale. |
| +class ASH_EXPORT TrayScale : public SystemTrayItem { |
| + public: |
| + explicit TrayScale(SystemTray* system_tray); |
| + ~TrayScale() override; |
| + |
| + private: |
| + // Overridden from SystemTrayItem. |
| + views::View* CreateDefaultView(LoginStatus status) override; |
| + views::View* CreateDetailedView(LoginStatus status) override; |
| + void DestroyDefaultView() override; |
| + void DestroyDetailedView() override; |
| + bool ShouldShowShelf() const override; |
| + |
| + tray::ScaleView* scale_view_; |
| + |
| + tray::ScaleDetailedView* scale_detail_view_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(TrayScale); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_ |