Home | History | Annotate | Download | only in tray
      1 // Copyright 2013 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_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
      6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
      7 
      8 #include "ash/ash_export.h"
      9 #include "ash/system/tray/system_tray_delegate.h"
     10 #include "base/compiler_specific.h"
     11 #include "base/memory/scoped_ptr.h"
     12 
     13 namespace ash {
     14 
     15 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate {
     16  public:
     17   DefaultSystemTrayDelegate();
     18   virtual ~DefaultSystemTrayDelegate();
     19 
     20   // Overridden from SystemTrayDelegate:
     21   virtual void Initialize() OVERRIDE;
     22   virtual void Shutdown() OVERRIDE;
     23   virtual bool GetTrayVisibilityOnStartup() OVERRIDE;
     24   virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE;
     25   virtual bool IsOobeCompleted() const OVERRIDE;
     26   virtual void ChangeProfilePicture() OVERRIDE;
     27   virtual const std::string GetEnterpriseDomain() const OVERRIDE;
     28   virtual const base::string16 GetEnterpriseMessage() const OVERRIDE;
     29   virtual const std::string GetLocallyManagedUserManager() const OVERRIDE;
     30   virtual const base::string16 GetLocallyManagedUserManagerName() const
     31       OVERRIDE;
     32   virtual const base::string16 GetLocallyManagedUserMessage() const OVERRIDE;
     33   virtual bool SystemShouldUpgrade() const OVERRIDE;
     34   virtual base::HourClockType GetHourClockType() const OVERRIDE;
     35   virtual void ShowSettings() OVERRIDE;
     36   virtual bool ShouldShowSettings() OVERRIDE;
     37   virtual void ShowDateSettings() OVERRIDE;
     38   virtual void ShowNetworkSettings(const std::string& service_path) OVERRIDE;
     39   virtual void ShowBluetoothSettings() OVERRIDE;
     40   virtual void ShowDisplaySettings() OVERRIDE;
     41   virtual void ShowChromeSlow() OVERRIDE;
     42   virtual bool ShouldShowDisplayNotification() OVERRIDE;
     43   virtual void ShowDriveSettings() OVERRIDE;
     44   virtual void ShowIMESettings() OVERRIDE;
     45   virtual void ShowHelp() OVERRIDE;
     46   virtual void ShowAccessibilityHelp() OVERRIDE;
     47   virtual void ShowAccessibilitySettings() OVERRIDE;
     48   virtual void ShowPublicAccountInfo() OVERRIDE;
     49   virtual void ShowEnterpriseInfo() OVERRIDE;
     50   virtual void ShowLocallyManagedUserInfo() OVERRIDE;
     51   virtual void ShowUserLogin() OVERRIDE;
     52   virtual void ShowSpringChargerReplacementDialog() OVERRIDE;
     53   virtual bool HasUserConfirmedSafeSpringCharger() OVERRIDE;
     54   virtual void ShutDown() OVERRIDE;
     55   virtual void SignOut() OVERRIDE;
     56   virtual void RequestLockScreen() OVERRIDE;
     57   virtual void RequestRestartForUpdate() OVERRIDE;
     58   virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* list) OVERRIDE;
     59   virtual void BluetoothStartDiscovering() OVERRIDE;
     60   virtual void BluetoothStopDiscovering() OVERRIDE;
     61   virtual void ConnectToBluetoothDevice(const std::string& address) OVERRIDE;
     62   virtual void GetCurrentIME(IMEInfo* info) OVERRIDE;
     63   virtual void GetAvailableIMEList(IMEInfoList* list) OVERRIDE;
     64   virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) OVERRIDE;
     65   virtual void SwitchIME(const std::string& ime_id) OVERRIDE;
     66   virtual void ActivateIMEProperty(const std::string& key) OVERRIDE;
     67   virtual void CancelDriveOperation(int32 operation_id) OVERRIDE;
     68   virtual void GetDriveOperationStatusList(
     69       ash::DriveOperationStatusList*) OVERRIDE;
     70   virtual void ShowNetworkConfigure(const std::string& network_id,
     71                                     gfx::NativeWindow parent_window) OVERRIDE;
     72   virtual bool EnrollNetwork(const std::string& network_id,
     73                              gfx::NativeWindow parent_window) OVERRIDE;
     74   virtual void ManageBluetoothDevices() OVERRIDE;
     75   virtual void ToggleBluetooth() OVERRIDE;
     76   virtual bool IsBluetoothDiscovering() OVERRIDE;
     77   virtual void ShowMobileSimDialog() OVERRIDE;
     78   virtual void ShowMobileSetupDialog(const std::string& service_path) OVERRIDE;
     79   virtual void ShowOtherNetworkDialog(const std::string& type) OVERRIDE;
     80   virtual bool GetBluetoothAvailable() OVERRIDE;
     81   virtual bool GetBluetoothEnabled() OVERRIDE;
     82   virtual void ChangeProxySettings() OVERRIDE;
     83   virtual VolumeControlDelegate* GetVolumeControlDelegate() const OVERRIDE;
     84   virtual void SetVolumeControlDelegate(
     85       scoped_ptr<VolumeControlDelegate> delegate) OVERRIDE;
     86   virtual bool GetSessionStartTime(
     87       base::TimeTicks* session_start_time) OVERRIDE;
     88   virtual bool GetSessionLengthLimit(
     89       base::TimeDelta* session_length_limit) OVERRIDE;
     90   virtual int GetSystemTrayMenuWidth() OVERRIDE;
     91 
     92  private:
     93   bool bluetooth_enabled_;
     94   scoped_ptr<VolumeControlDelegate> volume_control_delegate_;
     95 
     96   DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate);
     97 };
     98 
     99 }  // namespace ash
    100 
    101 #endif  // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
    102