| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/public/interfaces/system_tray.mojom.h" | 9 #include "ash/public/interfaces/system_tray.mojom.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 void ShowBluetoothPairingDialog(const std::string& address, | 39 void ShowBluetoothPairingDialog(const std::string& address, |
| 40 const base::string16& name_for_display, | 40 const base::string16& name_for_display, |
| 41 bool paired, | 41 bool paired, |
| 42 bool connected); | 42 bool connected); |
| 43 void ShowDateSettings(); | 43 void ShowDateSettings(); |
| 44 void ShowSetTimeDialog(); | 44 void ShowSetTimeDialog(); |
| 45 void ShowDisplaySettings(); | 45 void ShowDisplaySettings(); |
| 46 void ShowPowerSettings(); | 46 void ShowPowerSettings(); |
| 47 void ShowChromeSlow(); | 47 void ShowChromeSlow(); |
| 48 void ShowIMESettings(); | 48 void ShowIMESettings(); |
| 49 void ShowAboutChromeOS(); |
| 49 void ShowHelp(); | 50 void ShowHelp(); |
| 50 void ShowAccessibilityHelp(); | 51 void ShowAccessibilityHelp(); |
| 51 void ShowAccessibilitySettings(); | 52 void ShowAccessibilitySettings(); |
| 52 void ShowPaletteHelp(); | 53 void ShowPaletteHelp(); |
| 53 void ShowPaletteSettings(); | 54 void ShowPaletteSettings(); |
| 54 void ShowPublicAccountInfo(); | 55 void ShowPublicAccountInfo(); |
| 55 void ShowEnterpriseInfo(); | 56 void ShowEnterpriseInfo(); |
| 56 void ShowNetworkConfigure(const std::string& network_id); | 57 void ShowNetworkConfigure(const std::string& network_id); |
| 57 void ShowNetworkCreate(const std::string& type); | 58 void ShowNetworkCreate(const std::string& type); |
| 58 void ShowThirdPartyVpnCreate(const std::string& extension_id); | 59 void ShowThirdPartyVpnCreate(const std::string& extension_id); |
| 59 void ShowNetworkSettings(const std::string& network_id); | 60 void ShowNetworkSettings(const std::string& network_id); |
| 60 void ShowProxySettings(); | 61 void ShowProxySettings(); |
| 61 void SignOut(); | 62 void SignOut(); |
| 62 void RequestRestartForUpdate(); | 63 void RequestRestartForUpdate(); |
| 63 | 64 |
| 64 // Binds the mojom::SystemTray interface to this object. | 65 // Binds the mojom::SystemTray interface to this object. |
| 65 void BindRequest(mojom::SystemTrayRequest request); | 66 void BindRequest(mojom::SystemTrayRequest request); |
| 66 | 67 |
| 67 // mojom::SystemTray overrides. Public for testing. | 68 // mojom::SystemTray overrides. Public for testing. |
| 68 void SetClient(mojom::SystemTrayClientPtr client) override; | 69 void SetClient(mojom::SystemTrayClientPtr client) override; |
| 69 void SetPrimaryTrayEnabled(bool enabled) override; | 70 void SetPrimaryTrayEnabled(bool enabled) override; |
| 70 void SetPrimaryTrayVisible(bool visible) override; | 71 void SetPrimaryTrayVisible(bool visible) override; |
| 71 void SetUse24HourClock(bool use_24_hour) override; | 72 void SetUse24HourClock(bool use_24_hour) override; |
| 72 void SetEnterpriseDomain(const std::string& enterprise_domain, | 73 void SetEnterpriseDomain(const std::string& enterprise_domain, |
| 73 bool active_directory_managed) override; | 74 bool active_directory_managed) override; |
| 74 void ShowUpdateIcon(mojom::UpdateSeverity severity, | 75 void ShowUpdateIcon(mojom::UpdateSeverity severity, |
| 75 bool factory_reset_required, | 76 bool factory_reset_required, |
| 76 mojom::UpdateType update_type) override; | 77 mojom::UpdateType update_type) override; |
| 78 void ShowUpdateOverCellularAvailableIcon() override; |
| 77 | 79 |
| 78 private: | 80 private: |
| 79 // Client interface in chrome browser. May be null in tests. | 81 // Client interface in chrome browser. May be null in tests. |
| 80 mojom::SystemTrayClientPtr system_tray_client_; | 82 mojom::SystemTrayClientPtr system_tray_client_; |
| 81 | 83 |
| 82 // Bindings for the SystemTray interface. | 84 // Bindings for the SystemTray interface. |
| 83 mojo::BindingSet<mojom::SystemTray> bindings_; | 85 mojo::BindingSet<mojom::SystemTray> bindings_; |
| 84 | 86 |
| 85 // The type of clock hour display: 12 or 24 hour. | 87 // The type of clock hour display: 12 or 24 hour. |
| 86 base::HourClockType hour_clock_type_; | 88 base::HourClockType hour_clock_type_; |
| 87 | 89 |
| 88 // The domain name of the organization that manages the device. Empty if the | 90 // The domain name of the organization that manages the device. Empty if the |
| 89 // device is not enterprise enrolled or if it uses Active Directory. | 91 // device is not enterprise enrolled or if it uses Active Directory. |
| 90 std::string enterprise_domain_; | 92 std::string enterprise_domain_; |
| 91 | 93 |
| 92 // Whether this is an Active Directory managed enterprise device. | 94 // Whether this is an Active Directory managed enterprise device. |
| 93 bool active_directory_managed_ = false; | 95 bool active_directory_managed_ = false; |
| 94 | 96 |
| 95 DISALLOW_COPY_AND_ASSIGN(SystemTrayController); | 97 DISALLOW_COPY_AND_ASSIGN(SystemTrayController); |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namspace ash | 100 } // namspace ash |
| 99 | 101 |
| 100 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ | 102 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_CONTROLLER_H_ |
| OLD | NEW |