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_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/common/system/tray/default_system_tray_delegate.h" | 10 #include "ash/system/tray/default_system_tray_delegate.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 class NetworkingConfigDelegate; | 15 class NetworkingConfigDelegate; |
16 | 16 |
17 // Handles the settings displayed in the system tray menu. For the classic ash | 17 // Handles the settings displayed in the system tray menu. For the classic ash |
18 // version see SystemTrayDelegateChromeOS. | 18 // version see SystemTrayDelegateChromeOS. |
19 // | 19 // |
20 // Chrome OS only. Other platforms use DefaultSystemTrayDelegate directly. | 20 // Chrome OS only. Other platforms use DefaultSystemTrayDelegate directly. |
21 // | 21 // |
22 // TODO: Support all methods in SystemTrayDelegate. http://crbug.com/647412. | 22 // TODO: Support all methods in SystemTrayDelegate. http://crbug.com/647412. |
23 class SystemTrayDelegateMus : public DefaultSystemTrayDelegate { | 23 class SystemTrayDelegateMus : public DefaultSystemTrayDelegate { |
24 public: | 24 public: |
25 SystemTrayDelegateMus(); | 25 SystemTrayDelegateMus(); |
26 ~SystemTrayDelegateMus() override; | 26 ~SystemTrayDelegateMus() override; |
27 | 27 |
28 private: | 28 private: |
29 // SystemTrayDelegate: | 29 // SystemTrayDelegate: |
30 NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; | 30 NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; |
31 | 31 |
32 std::unique_ptr<NetworkingConfigDelegate> networking_config_delegate_; | 32 std::unique_ptr<NetworkingConfigDelegate> networking_config_delegate_; |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); | 34 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace ash | 37 } // namespace ash |
38 | 38 |
39 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 39 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
OLD | NEW |