• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef ASH_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
6 #define ASH_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
7 
8 #include "ash/system/tray/system_tray_item.h"
9 
10 namespace ash {
11 namespace internal {
12 
13 namespace tray {
14 class SettingsDefaultView;
15 }
16 
17 class TraySettings : public SystemTrayItem {
18  public:
19   explicit TraySettings(SystemTray* system_tray);
20   virtual ~TraySettings();
21 
22  private:
23   // Overridden from SystemTrayItem
24   virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
25   virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
26   virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
27   virtual void DestroyTrayView() OVERRIDE;
28   virtual void DestroyDefaultView() OVERRIDE;
29   virtual void DestroyDetailedView() OVERRIDE;
30   virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
31 
32   tray::SettingsDefaultView* default_view_;
33 
34   DISALLOW_COPY_AND_ASSIGN(TraySettings);
35 };
36 
37 }  // namespace internal
38 }  // namespace ash
39 
40 #endif  // ASH_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
41