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

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

Issue 2849953004: SV Test
Patch Set: 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/fractional_view/scale_view.cc ('k') | ash/system/fractional_view/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
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_FRACTIONAL_VIEW_TRAY_SCALE_H_
7 #define ASH_SYSTEM_FRACTIONAL_VIEW_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 #include "ui/display/display_observer.h"
15
16 namespace ash {
17 namespace tray {
18 class ScaleView;
19 class ScaleDetailedView;
20 }
21
22 // The system tray item for audio input and output.
23 class ASH_EXPORT TrayScale : public TrayImageItem,
24 public display::DisplayObserver {
25 public:
26 explicit TrayScale(SystemTray* system_tray);
27 ~TrayScale() override;
28
29 private:
30 // Overridden from display::DisplayObserver.
31 void OnDisplayAdded(const display::Display& new_display) override;
32 void OnDisplayRemoved(const display::Display& old_display) override;
33 void OnDisplayMetricsChanged(const display::Display& display,
34 uint32_t changed_metrics) override;
35
36 // Overridden from TrayImageItem.
37 bool GetInitialVisibility() override;
38
39 // Overridden from SystemTrayItem.
40 views::View* CreateDefaultView(LoginStatus status) override;
41 views::View* CreateDetailedView(LoginStatus status) override;
42 void DestroyDefaultView() override;
43 void DestroyDetailedView() override;
44 bool ShouldShowShelf() const override;
45
46 tray::ScaleView* scale_view_;
47
48 tray::ScaleDetailedView* scale_detail_view_;
49
50 DISALLOW_COPY_AND_ASSIGN(TrayScale);
51 };
52
53 } // namespace ash
54
55 #endif // ASH_SYSTEM_FRACTIONAL_VIEW_TRAY_SCALE_H_
OLDNEW
« no previous file with comments | « ash/system/fractional_view/scale_view.cc ('k') | ash/system/fractional_view/tray_scale.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698