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

Unified Diff: ash/system/fractional_view/tray_scale.h

Issue 2849953004: SV Test
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/fractional_view/tray_scale.h
diff --git a/ash/system/fractional_view/tray_scale.h b/ash/system/fractional_view/tray_scale.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9b33bada01338a35e1e00f21029daa61cb24b64
--- /dev/null
+++ b/ash/system/fractional_view/tray_scale.h
@@ -0,0 +1,55 @@
+
+// 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_FRACTIONAL_VIEW_TRAY_SCALE_H_
+#define ASH_SYSTEM_FRACTIONAL_VIEW_TRAY_SCALE_H_
+
+#include <stdint.h>
+
+#include "ash/ash_export.h"
+#include "ash/system/tray/tray_image_item.h"
+#include "base/macros.h"
+#include "ui/display/display_observer.h"
+
+namespace ash {
+namespace tray {
+class ScaleView;
+class ScaleDetailedView;
+}
+
+// The system tray item for audio input and output.
+class ASH_EXPORT TrayScale : public TrayImageItem,
+ public display::DisplayObserver {
+ public:
+ explicit TrayScale(SystemTray* system_tray);
+ ~TrayScale() override;
+
+ private:
+ // Overridden from display::DisplayObserver.
+ void OnDisplayAdded(const display::Display& new_display) override;
+ void OnDisplayRemoved(const display::Display& old_display) override;
+ void OnDisplayMetricsChanged(const display::Display& display,
+ uint32_t changed_metrics) override;
+
+ // Overridden from TrayImageItem.
+ bool GetInitialVisibility() override;
+
+ // 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_FRACTIONAL_VIEW_TRAY_SCALE_H_
« 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