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

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
OLDNEW
(Empty)
1
oshima 2017/05/06 19:50:22 ditto
malaykeshav 2017/05/08 19:18:06 Done
2 // Copyright 2017 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_
7 #define ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_
8
9 #include <stdint.h>
10
11 #include "ash/ash_export.h"
12 #include "ash/system/tray/tray_image_item.h"
13 #include "base/macros.h"
14
15 namespace ash {
16 namespace tray {
17 class ScaleView;
18 class ScaleDetailedView;
19 }
oshima 2017/05/06 19:50:22 // tray and space
malaykeshav 2017/05/08 19:18:06 Done "space"?
20
21 // The system tray item for display scale.
22 class ASH_EXPORT TrayScale : public SystemTrayItem {
23 public:
24 explicit TrayScale(SystemTray* system_tray);
25 ~TrayScale() override;
26
27 private:
28 // Overridden from SystemTrayItem.
29 views::View* CreateDefaultView(LoginStatus status) override;
30 views::View* CreateDetailedView(LoginStatus status) override;
31 void DestroyDefaultView() override;
32 void DestroyDetailedView() override;
33 bool ShouldShowShelf() const override;
34
35 tray::ScaleView* scale_view_;
36
37 tray::ScaleDetailedView* scale_detail_view_;
38
39 DISALLOW_COPY_AND_ASSIGN(TrayScale);
40 };
41
42 } // namespace ash
43
44 #endif // ASH_SYSTEM_DISPLAY_SCALE_TRAY_SCALE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698