summaryrefslogtreecommitdiffstats
path: root/ash/system/power/tray_power_date.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 18:30:50 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 18:30:50 +0000
commitf7f06ea18c6c20546b6dbcebd0b1cc4527b057c5 (patch)
tree1700be50abbbc6f32f29e8eb12edcdc251ef8d38 /ash/system/power/tray_power_date.h
parent958068f9967b2b1a715030755ac175f467acea37 (diff)
downloadchromium_src-f7f06ea18c6c20546b6dbcebd0b1cc4527b057c5.zip
chromium_src-f7f06ea18c6c20546b6dbcebd0b1cc4527b057c5.tar.gz
chromium_src-f7f06ea18c6c20546b6dbcebd0b1cc4527b057c5.tar.bz2
ash uber tray: Add entry for power and date.
BUG=110130 TEST=none Review URL: https://chromiumcodereview.appspot.com/9562008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/power/tray_power_date.h')
-rw-r--r--ash/system/power/tray_power_date.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/ash/system/power/tray_power_date.h b/ash/system/power/tray_power_date.h
new file mode 100644
index 0000000..5427149
--- /dev/null
+++ b/ash/system/power/tray_power_date.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2012 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_POWER_TRAY_POWER_DATE_H_
+#define ASH_SYSTEM_POWER_TRAY_POWER_DATE_H_
+#pragma once
+
+#include "ash/system/power/power_status_controller.h"
+#include "ash/system/tray/system_tray_item.h"
+
+namespace ash {
+namespace internal {
+
+namespace tray {
+class DateView;
+class PowerPopupView;
+class PowerTrayView;
+}
+
+class TrayPowerDate : public SystemTrayItem,
+ public PowerStatusController {
+ public:
+ TrayPowerDate();
+ virtual ~TrayPowerDate();
+
+ private:
+ // Overridden from SystemTrayItem.
+ virtual views::View* CreateTrayView() OVERRIDE;
+ virtual views::View* CreateDefaultView() OVERRIDE;
+ virtual views::View* CreateDetailedView() OVERRIDE;
+ virtual void DestroyTrayView() OVERRIDE;
+ virtual void DestroyDefaultView() OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
+
+ // Overridden from PowerStatusController.
+ virtual void OnPowerStatusChanged(const PowerSupplyStatus& status) OVERRIDE;
+
+ scoped_ptr<tray::DateView> date_;
+ scoped_ptr<tray::DateView> date_tray_;
+
+ scoped_ptr<tray::PowerPopupView> power_;
+ scoped_ptr<tray::PowerTrayView> power_tray_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayPowerDate);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_POWER_TRAY_POWER_DATE_H_