Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ash / system / settings / tray_settings.h
blobed9c01577d4a16597725ab8aba13878fc9642fea
1 // Copyright (c) 2012 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.
5 #ifndef ASH_SYSTEM_SETTINGS_TRAY_SETTINGS_H_
6 #define ASH_SYSTEM_SETTINGS_TRAY_SETTINGS_H_
8 #include "ash/system/power/power_status_observer.h"
9 #include "ash/system/tray/system_tray_item.h"
11 namespace ash {
12 namespace internal {
14 namespace tray {
15 class SettingsDefaultView;
18 class TraySettings : public SystemTrayItem,
19 public PowerStatusObserver {
20 public:
21 explicit TraySettings(SystemTray* system_tray);
22 virtual ~TraySettings();
24 private:
25 // Overridden from SystemTrayItem
26 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
27 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
28 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
29 virtual void DestroyTrayView() OVERRIDE;
30 virtual void DestroyDefaultView() OVERRIDE;
31 virtual void DestroyDetailedView() OVERRIDE;
32 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
34 // Overridden from PowerStatusObserver.
35 virtual void OnPowerStatusChanged(const PowerSupplyStatus& status) OVERRIDE;
37 tray::SettingsDefaultView* default_view_;
39 DISALLOW_COPY_AND_ASSIGN(TraySettings);
42 } // namespace internal
43 } // namespace ash
45 #endif // ASH_SYSTEM_SETTINGS_TRAY_SETTINGS_H_