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

Side by Side Diff: ash/system/display_scale/tray_scale.h

Issue 2855143004: Implements a display scale tray setting behind a chrome switch (Closed)
Patch Set: Sync with ToT Created 3 years, 7 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/system/display_scale/scale_view.cc ('k') | ash/system/display_scale/tray_scale.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/system/display_scale/scale_view.cc ('k') | ash/system/display_scale/tray_scale.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698